MCPcopy Create free account
hub / github.com/react-component/select / SelectContextProps

Interface SelectContextProps

src/SelectContext.ts:13–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12// Use any here since we do not get the type during compilation
13export interface SelectContextProps {
14 options: BaseOptionType[];
15 optionRender?: SelectProps['optionRender'];
16 flattenOptions: FlattenOptionData<BaseOptionType>[];
17 onActiveValue: OnActiveValue;
18 defaultActiveFirstOption?: boolean;
19 onSelect: OnInternalSelect;
20 menuItemSelectedIcon?: RenderNode;
21 rawValues: Set<RawValueType>;
22 fieldNames?: FieldNames;
23 virtual?: boolean;
24 direction?: 'ltr' | 'rtl';
25 listHeight?: number;
26 listItemHeight?: number;
27 childrenAsData?: boolean;
28 maxCount?: number;
29}
30
31const SelectContext = React.createContext<SelectContextProps>(null);
32

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…