package.lib.SelectContext.d.ts Maven / Gradle / Ivy
The newest version!
import * as React from 'react';
import type { RawValueType, RenderNode } from './BaseSelect';
import type { BaseOptionType, FieldNames, OnActiveValue, OnInternalSelect, SelectProps } from './Select';
import type { FlattenOptionData } from './interface';
export interface SelectContextProps {
options: BaseOptionType[];
optionRender?: SelectProps['optionRender'];
flattenOptions: FlattenOptionData[];
onActiveValue: OnActiveValue;
defaultActiveFirstOption?: boolean;
onSelect: OnInternalSelect;
menuItemSelectedIcon?: RenderNode;
rawValues: Set;
fieldNames?: FieldNames;
virtual?: boolean;
direction?: 'ltr' | 'rtl';
listHeight?: number;
listItemHeight?: number;
childrenAsData?: boolean;
maxCount?: number;
}
declare const SelectContext: React.Context;
export default SelectContext;
© 2015 - 2024 Weber Informatics LLC | Privacy Policy