| 74 | } |
| 75 | |
| 76 | export interface Props< |
| 77 | Option, |
| 78 | IsMulti extends boolean, |
| 79 | Group extends GroupBase<Option> |
| 80 | > { |
| 81 | /** HTML ID of an element containing an error message related to the input**/ |
| 82 | 'aria-errormessage'?: AriaAttributes['aria-errormessage']; |
| 83 | /** Indicate if the value entered in the field is invalid **/ |
| 84 | 'aria-invalid'?: AriaAttributes['aria-invalid']; |
| 85 | /** Aria label (for assistive tech) */ |
| 86 | 'aria-label'?: AriaAttributes['aria-label']; |
| 87 | /** HTML ID of an element that should be used as the label (for assistive tech) */ |
| 88 | 'aria-labelledby'?: AriaAttributes['aria-labelledby']; |
| 89 | /** Used to set the priority with which screen reader should treat updates to live regions. The possible settings are: off, polite (default) or assertive */ |
| 90 | 'aria-live'?: AriaAttributes['aria-live']; |
| 91 | /** Customise the messages used by the aria-live component */ |
| 92 | ariaLiveMessages?: AriaLiveMessages<Option, IsMulti, Group>; |
| 93 | /** Focus the control when it is mounted */ |
| 94 | autoFocus?: boolean; |
| 95 | /** Remove the currently focused option when the user presses backspace when Select isClearable or isMulti */ |
| 96 | backspaceRemovesValue: boolean; |
| 97 | /** Remove focus from the input when the user selects an option (handy for dismissing the keyboard on touch devices) */ |
| 98 | blurInputOnSelect: boolean; |
| 99 | /** When the user reaches the top/bottom of the menu, prevent scroll on the scroll-parent */ |
| 100 | captureMenuScroll: boolean; |
| 101 | /** Sets a className attribute on the outer component */ |
| 102 | className?: string; |
| 103 | /** |
| 104 | * If provided, all inner components will be given a prefixed className attribute. |
| 105 | * |
| 106 | * This is useful when styling via CSS classes instead of the Styles API approach. |
| 107 | */ |
| 108 | classNamePrefix?: string | null; |
| 109 | /** |
| 110 | * Provide classNames based on state for each inner component |
| 111 | */ |
| 112 | classNames: ClassNamesConfig<Option, IsMulti, Group>; |
| 113 | /** Close the select menu when the user selects an option */ |
| 114 | closeMenuOnSelect: boolean; |
| 115 | /** |
| 116 | * If `true`, close the select menu when the user scrolls the document/body. |
| 117 | * |
| 118 | * If a function, takes a standard javascript `ScrollEvent` you return a boolean: |
| 119 | * |
| 120 | * `true` => The menu closes |
| 121 | * |
| 122 | * `false` => The menu stays open |
| 123 | * |
| 124 | * This is useful when you have a scrollable modal and want to portal the menu out, |
| 125 | * but want to avoid graphical issues. |
| 126 | */ |
| 127 | closeMenuOnScroll: boolean | ((event: Event) => boolean); |
| 128 | /** |
| 129 | * This complex object includes all the compositional components that are used |
| 130 | * in `react-select`. If you wish to overwrite a component, pass in an object |
| 131 | * with the appropriate namespace. |
| 132 | * |
| 133 | * If you only wish to restyle a component, we recommend using the `styles` prop |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…