UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

15 lines (14 loc) 756 B
import { GetStylesApi, MantineSize } from '../../core'; import type { ComboboxFactory } from './Combobox'; import type { ComboboxOptionProps } from './ComboboxOption/ComboboxOption'; import type { ComboboxStore } from './use-combobox/use-combobox'; export interface ComboboxContextValue { getStyles: GetStylesApi<ComboboxFactory>; store: ComboboxStore; onOptionSubmit?: (value: string, optionProps: ComboboxOptionProps) => void; size: MantineSize | (string & {}); resetSelectionOnOptionHover: boolean | undefined; readOnly: boolean | undefined; floatingHeight: 'viewport' | undefined; } export declare const ComboboxProvider: import("react").Context<ComboboxContextValue | null>, useComboboxContext: () => ComboboxContextValue;