mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Add missing properties to component props interfaces for Control and Select (#47617)
Co-authored-by: David Aldridge <daldridge@cognitivescale.com>
This commit is contained in:
parent
8158d19ac0
commit
e58b370380
@ -8,6 +8,8 @@ interface State {
|
||||
isDisabled: boolean;
|
||||
/** Whether the select is focused. */
|
||||
isFocused: boolean;
|
||||
/** Whether the select is expanded. */
|
||||
menuIsOpen: boolean;
|
||||
}
|
||||
|
||||
export type ControlProps<OptionType extends OptionTypeBase> = CommonProps<OptionType> &
|
||||
|
||||
2
types/react-select/src/components/Menu.d.ts
vendored
2
types/react-select/src/components/Menu.d.ts
vendored
@ -53,6 +53,8 @@ export type MenuProps<OptionType extends OptionTypeBase> = CommonProps<OptionTyp
|
||||
getPortalPlacement: (state: MenuState) => void,
|
||||
/** Props to be passed to the menu wrapper. */
|
||||
innerProps: object,
|
||||
/** Reference to the internal element, consumed by the MenuPlacer component */
|
||||
innerRef: InnerRef,
|
||||
/** Set the maximum height of the menu. */
|
||||
maxMenuHeight: number,
|
||||
/** Set whether the menu should be at the top, at the bottom. The auto options sets it to bottom. */
|
||||
|
||||
1
types/react-select/src/types.d.ts
vendored
1
types/react-select/src/types.d.ts
vendored
@ -33,6 +33,7 @@ export interface PropsWithStyles {
|
||||
See the `styles` object for the properties available.
|
||||
*/
|
||||
getStyles: (name: string, props: any) => {};
|
||||
theme: Theme;
|
||||
}
|
||||
|
||||
export type ClassNameList = string[];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user