Skip to content

Interface: SelectProps ‹T, GroupType›#

Type parameters#

▪ T

▪ GroupType: GroupTypeBase‹OptionType›

Hierarchy#

  • Props‹OptionTypeBase, boolean›

↳ SelectProps

Index#

Properties#

Methods#

Properties#

Optional aria-label#

• aria-label? : string

Inherited from SelectProps.aria-label

Defined in node_modules/@types/react-select/src/Select.d.ts:44

Aria label (for assistive tech)


Optional aria-labelledby#

• aria-labelledby? : string

Inherited from SelectProps.aria-labelledby

Defined in node_modules/@types/react-select/src/Select.d.ts:46

HTML ID of an element that should be used as the label (for assistive tech)


Optional autoConvertOptions#

• autoConvertOptions? : boolean

Defined in src/renderer/components/select/select.tsx:36


Optional autoFocus#

• autoFocus? : boolean

Inherited from SelectProps.autoFocus

Defined in node_modules/@types/react-select/src/Select.d.ts:48

Focus the control when it is mounted


Optional backspaceRemovesValue#

• backspaceRemovesValue? : boolean

Inherited from SelectProps.backspaceRemovesValue

Defined in node_modules/@types/react-select/src/Select.d.ts:50

Remove the currently focused option when the user presses backspace


Optional blurInputOnSelect#

• blurInputOnSelect? : boolean

Inherited from SelectProps.blurInputOnSelect

Defined in node_modules/@types/react-select/src/Select.d.ts:52

Remove focus from the input when the user selects an option (handy for dismissing the keyboard on touch devices)


Optional captureMenuScroll#

• captureMenuScroll? : boolean

Inherited from SelectProps.captureMenuScroll

Defined in node_modules/@types/react-select/src/Select.d.ts:54

When the user reaches the top/bottom of the menu, prevent scroll on the scroll-parent


Optional className#

• className? : string

Inherited from SelectProps.className

Defined in node_modules/@types/react-select/src/Select.d.ts:56

className attribute applied to the outer component


Optional classNamePrefix#

• classNamePrefix? : string | null

Inherited from SelectProps.classNamePrefix

Defined in node_modules/@types/react-select/src/Select.d.ts:58

classNamePrefix attribute used as a base for inner component classNames


Optional closeMenuOnScroll#

• closeMenuOnScroll? : boolean | EventListener

Inherited from SelectProps.closeMenuOnScroll

Defined in node_modules/@types/react-select/src/Select.d.ts:73

If true, close the select menu when the user scrolls the document/body.

If a function, takes a standard javascript ScrollEvent you return a boolean:

true => The menu closes

false => The menu stays open

This is useful when you have a scrollable modal and want to portal the menu out, but want to avoid graphical issues.


Optional closeMenuOnSelect#

• closeMenuOnSelect? : boolean

Inherited from SelectProps.closeMenuOnSelect

Defined in node_modules/@types/react-select/src/Select.d.ts:60

Close the select menu when the user selects an option


Optional components#

• components? : SelectComponentsConfig‹OptionTypeBase, boolean, GroupType›

Inherited from SelectProps.components

Defined in node_modules/@types/react-select/src/Select.d.ts:83

This complex object includes all the compositional components that are used in react-select. If you wish to overwrite a component, pass in an object with the appropriate namespace.

If you only wish to restyle a component, we recommend using the styles prop instead. For a list of the components that can be passed in, and the shape that will be passed to them, see the components docs


Optional controlShouldRenderValue#

• controlShouldRenderValue? : boolean

Inherited from SelectProps.controlShouldRenderValue

Defined in node_modules/@types/react-select/src/Select.d.ts:85

Whether the value of the select, e.g. SingleValue, should be displayed in the control.


Optional defaultInputValue#

• defaultInputValue? : string

Inherited from SelectProps.defaultInputValue

Defined in node_modules/@types/react-select/src/Select.d.ts:192


Optional defaultMenuIsOpen#

• defaultMenuIsOpen? : boolean

Inherited from SelectProps.defaultMenuIsOpen

Defined in node_modules/@types/react-select/src/Select.d.ts:193


Optional defaultValue#

• defaultValue? : keyof OptionTypeBase[] | OptionTypeBase | null

Inherited from SelectProps.defaultValue

Defined in node_modules/@types/react-select/src/Select.d.ts:194


Optional delimiter#

• delimiter? : string

Inherited from SelectProps.delimiter

Defined in node_modules/@types/react-select/src/Select.d.ts:87

Delimiter used to join multiple values into a single HTML Input value


Optional escapeClearsValue#

• escapeClearsValue? : boolean

Inherited from SelectProps.escapeClearsValue

Defined in node_modules/@types/react-select/src/Select.d.ts:89

Clear all values when the user presses escape AND the menu is closed


Optional filterOption#

• filterOption? : function | null

Inherited from SelectProps.filterOption

Defined in node_modules/@types/react-select/src/Select.d.ts:91

Custom method to filter whether an option should be displayed in the menu


Optional formatGroupLabel#

• formatGroupLabel? : formatGroupLabel‹OptionTypeBase, GroupType›

Inherited from SelectProps.formatGroupLabel

Defined in node_modules/@types/react-select/src/Select.d.ts:93

Formats group labels in the menu as React components


Optional formatOptionLabel#

• formatOptionLabel? : function

Inherited from SelectProps.formatOptionLabel

Defined in node_modules/@types/react-select/src/Select.d.ts:95

Formats option labels in the menu and control as React components

Type declaration:#

▸ (option: OptionTypeBase, labelMeta: FormatOptionLabelMeta‹OptionTypeBase, boolean›): React.ReactNode

Parameters:

Name Type
option OptionTypeBase
labelMeta FormatOptionLabelMeta‹OptionTypeBase, boolean›

Optional getOptionLabel#

• getOptionLabel? : getOptionLabel‹OptionTypeBase›

Inherited from SelectProps.getOptionLabel

Defined in node_modules/@types/react-select/src/Select.d.ts:97

Resolves option data to a string to be displayed as the label by components


Optional getOptionValue#

• getOptionValue? : getOptionValue‹OptionTypeBase›

Inherited from SelectProps.getOptionValue

Defined in node_modules/@types/react-select/src/Select.d.ts:99

Resolves option data to a string to compare options and specify value attributes


Optional hideSelectedOptions#

• hideSelectedOptions? : boolean

Inherited from SelectProps.hideSelectedOptions

Defined in node_modules/@types/react-select/src/Select.d.ts:101

Hide the selected option from the menu


Optional id#

• id? : string

Inherited from SelectProps.id

Defined in node_modules/@types/react-select/src/Select.d.ts:103

The id to set on the SelectContainer component.


Optional inputId#

• inputId? : string

Inherited from SelectProps.inputId

Defined in node_modules/@types/react-select/src/Select.d.ts:107

The id of the search input


Optional inputValue#

• inputValue? : string

Inherited from SelectProps.inputValue

Defined in node_modules/@types/react-select/src/Select.d.ts:105

The value of the search input


Optional instanceId#

• instanceId? : number | string

Inherited from SelectProps.instanceId

Defined in node_modules/@types/react-select/src/Select.d.ts:109

Define an id prefix for the select components e.g. {your-id}-value


Optional isClearable#

• isClearable? : boolean

Inherited from SelectProps.isClearable

Defined in node_modules/@types/react-select/src/Select.d.ts:111

Is the select value clearable


Optional isCreatable#

• isCreatable? : boolean

Defined in src/renderer/components/select/select.tsx:35


Optional isDisabled#

• isDisabled? : boolean

Inherited from SelectProps.isDisabled

Defined in node_modules/@types/react-select/src/Select.d.ts:113

Is the select disabled


Optional isLoading#

• isLoading? : boolean

Inherited from SelectProps.isLoading

Defined in node_modules/@types/react-select/src/Select.d.ts:115

Is the select in a state of loading (async)


Optional isMulti#

• isMulti? : boolean

Inherited from SelectProps.isMulti

Defined in node_modules/@types/react-select/src/Select.d.ts:121

Support multiple selected options


Optional isOptionDisabled#

• isOptionDisabled? : function

Inherited from SelectProps.isOptionDisabled

Defined in node_modules/@types/react-select/src/Select.d.ts:117

Override the built-in logic to detect whether an option is disabled

Type declaration:#

▸ (option: OptionTypeBase, options: OptionsType‹OptionTypeBase›): boolean | false

Parameters:

Name Type
option OptionTypeBase
options OptionsType‹OptionTypeBase›

Optional isOptionSelected#

• isOptionSelected? : function

Inherited from SelectProps.isOptionSelected

Defined in node_modules/@types/react-select/src/Select.d.ts:119

Override the built-in logic to detect whether an option is selected

Type declaration:#

▸ (option: OptionTypeBase, options: OptionsType‹OptionTypeBase›): boolean

Parameters:

Name Type
option OptionTypeBase
options OptionsType‹OptionTypeBase›

Optional isRtl#

• isRtl? : boolean

Inherited from SelectProps.isRtl

Defined in node_modules/@types/react-select/src/Select.d.ts:123

Is the select direction right-to-left


Optional isSearchable#

• isSearchable? : boolean

Inherited from SelectProps.isSearchable

Defined in node_modules/@types/react-select/src/Select.d.ts:125

Whether to enable search functionality


Optional loadingMessage#

• loadingMessage? : function

Inherited from SelectProps.loadingMessage

Defined in node_modules/@types/react-select/src/Select.d.ts:127

Async: Text to display when loading options

Type declaration:#

▸ (obj: object): string | null

Parameters:

▪ obj: object

Name Type
inputValue string

Optional maxMenuHeight#

• maxMenuHeight? : number

Inherited from SelectProps.maxMenuHeight

Defined in node_modules/@types/react-select/src/Select.d.ts:131

Maximum height of the menu before scrolling


Optional menuClass#

• menuClass? : string

Defined in src/renderer/components/select/select.tsx:34


Optional menuIsOpen#

• menuIsOpen? : boolean

Inherited from SelectProps.menuIsOpen

Defined in node_modules/@types/react-select/src/Select.d.ts:133

Whether the menu is open


Optional menuPlacement#

• menuPlacement? : MenuPlacement

Inherited from SelectProps.menuPlacement

Defined in node_modules/@types/react-select/src/Select.d.ts:138

Default placement of the menu in relation to the control. 'auto' will flip when there isn't enough space below the control.


Optional menuPortalTarget#

• menuPortalTarget? : HTMLElement | null

Inherited from SelectProps.menuPortalTarget

Defined in node_modules/@types/react-select/src/Select.d.ts:142

Whether the menu should use a portal, and where it should attach


Optional menuPosition#

• menuPosition? : MenuPosition

Inherited from SelectProps.menuPosition

Defined in node_modules/@types/react-select/src/Select.d.ts:140

The CSS position value of the menu, when "fixed" extra layout management is required


Optional menuShouldBlockScroll#

• menuShouldBlockScroll? : boolean

Inherited from SelectProps.menuShouldBlockScroll

Defined in node_modules/@types/react-select/src/Select.d.ts:144

Whether to block scroll events when the menu is open


Optional menuShouldScrollIntoView#

• menuShouldScrollIntoView? : boolean

Inherited from SelectProps.menuShouldScrollIntoView

Defined in node_modules/@types/react-select/src/Select.d.ts:146

Whether the menu should be scrolled into view when it opens


Optional minMenuHeight#

• minMenuHeight? : number

Inherited from SelectProps.minMenuHeight

Defined in node_modules/@types/react-select/src/Select.d.ts:129

Minimum height of the menu before flipping


Optional name#

• name? : string

Inherited from SelectProps.name

Defined in node_modules/@types/react-select/src/Select.d.ts:148

Name of the HTML Input (optional - without this, no input will be rendered)


Optional noOptionsMessage#

• noOptionsMessage? : function

Inherited from SelectProps.noOptionsMessage

Defined in node_modules/@types/react-select/src/Select.d.ts:150

Text to display when there are no options

Type declaration:#

▸ (obj: object): string | null

Parameters:

▪ obj: object

Name Type
inputValue string

Optional onBlur#

• onBlur? : FocusEventHandler

Inherited from SelectProps.onBlur

Defined in node_modules/@types/react-select/src/Select.d.ts:152

Handle blur events on the control


Optional onFocus#

• onFocus? : FocusEventHandler

Inherited from SelectProps.onFocus

Defined in node_modules/@types/react-select/src/Select.d.ts:156

Handle focus events on the control


Optional onInputChange#

• onInputChange? : function

Inherited from SelectProps.onInputChange

Defined in node_modules/@types/react-select/src/Select.d.ts:158

Handle change events on the input

Type declaration:#

▸ (newValue: string, actionMeta: InputActionMeta): void

Parameters:

Name Type
newValue string
actionMeta InputActionMeta

Optional onKeyDown#

• onKeyDown? : KeyboardEventHandler

Inherited from SelectProps.onKeyDown

Defined in node_modules/@types/react-select/src/Select.d.ts:160

Handle key down events on the select


Optional onMenuClose#

• onMenuClose? : function

Inherited from SelectProps.onMenuClose

Defined in node_modules/@types/react-select/src/Select.d.ts:164

Handle the menu closing

Type declaration:#

▸ (): void


Optional onMenuOpen#

• onMenuOpen? : function

Inherited from SelectProps.onMenuOpen

Defined in node_modules/@types/react-select/src/Select.d.ts:162

Handle the menu opening

Type declaration:#

▸ (): void


Optional onMenuScrollToBottom#

• onMenuScrollToBottom? : function

Inherited from SelectProps.onMenuScrollToBottom

Defined in node_modules/@types/react-select/src/Select.d.ts:168

Fired when the user scrolls to the bottom of the menu

Type declaration:#

▸ (event: SyntheticEvent‹HTMLElement›): void

Parameters:

Name Type
event SyntheticEvent‹HTMLElement›

Optional onMenuScrollToTop#

• onMenuScrollToTop? : function

Inherited from SelectProps.onMenuScrollToTop

Defined in node_modules/@types/react-select/src/Select.d.ts:166

Fired when the user scrolls to the top of the menu

Type declaration:#

▸ (event: SyntheticEvent‹HTMLElement›): void

Parameters:

Name Type
event SyntheticEvent‹HTMLElement›

Optional openMenuOnClick#

• openMenuOnClick? : boolean

Inherited from SelectProps.openMenuOnClick

Defined in node_modules/@types/react-select/src/Select.d.ts:172

Allows control of whether the menu is opened when the Select is clicked


Optional openMenuOnFocus#

• openMenuOnFocus? : boolean

Inherited from SelectProps.openMenuOnFocus

Defined in node_modules/@types/react-select/src/Select.d.ts:170

Allows control of whether the menu is opened when the Select is focused


Optional options#

• options? : ReadonlyArray‹OptionType | GroupType | unknown›

Overrides void

Defined in src/renderer/components/select/select.tsx:31


Optional pageSize#

• pageSize? : number

Inherited from SelectProps.pageSize

Defined in node_modules/@types/react-select/src/Select.d.ts:176

Number of options to jump in menu when page{up|down} keys are used


Optional placeholder#

• placeholder? : React.ReactNode

Inherited from SelectProps.placeholder

Defined in node_modules/@types/react-select/src/Select.d.ts:178

Placeholder text for the select value


Optional screenReaderStatus#

• screenReaderStatus? : function

Inherited from SelectProps.screenReaderStatus

Defined in node_modules/@types/react-select/src/Select.d.ts:180

Status to relay to screen readers

Type declaration:#

▸ (obj: object): string

Parameters:

▪ obj: object

Name Type
count number

Optional styles#

• styles? : StylesConfig‹OptionTypeBase, boolean, GroupType›

Inherited from SelectProps.styles

Defined in node_modules/@types/react-select/src/Select.d.ts:182

Style modifier methods


Optional tabIndex#

• tabIndex? : string | null

Inherited from SelectProps.tabIndex

Defined in node_modules/@types/react-select/src/Select.d.ts:186

Sets the tabIndex attribute on the input


Optional tabSelectsValue#

• tabSelectsValue? : boolean

Inherited from SelectProps.tabSelectsValue

Defined in node_modules/@types/react-select/src/Select.d.ts:188

Select the currently focused option when the user presses tab


Optional theme#

• theme? : ThemeConfig

Inherited from SelectProps.theme

Defined in node_modules/@types/react-select/src/Select.d.ts:184

Theme modifier method


Optional themeName#

• themeName? : "dark" | "light" | "outlined"

Defined in src/renderer/components/select/select.tsx:33


Optional value#

• value? : T

Overrides void

Defined in src/renderer/components/select/select.tsx:32

Methods#

Optional onChange#

▸ onChange(option: T, meta?: ActionMeta‹any›): void

Overrides void

Defined in src/renderer/components/select/select.tsx:37

Parameters:

Name Type
option T
meta? ActionMeta‹any›

Returns: void