UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

17 lines (16 loc) 793 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; } export declare const ComboboxProvider: ({ children, value }: { value: ComboboxContextValue; children: React.ReactNode; }) => import("react/jsx-runtime").JSX.Element, useComboboxContext: () => ComboboxContextValue;