UNPKG

@cerberus-design/react

Version:

The Cerberus Design React component library.

23 lines (22 loc) 935 B
import { ComboboxRootProps } from '@ark-ui/react/combobox'; import { ComboboxVariantProps } from 'styled-system/recipes'; import { RefObject } from 'react'; import { SelectCollectionItem } from '../select/select'; import { FieldInputElProps } from '../field/index'; export interface ComboboxProps extends ComboboxRootProps<SelectCollectionItem>, ComboboxVariantProps { /** * The label that appears above the combobox input. */ label?: string; /** * The icon that appears at the start of the combobox input. */ startIcon?: FieldInputElProps['startIcon']; /** * The container element to render the Select dropdown in. This is used * to render the Select dropdown in a specific context, such as a modal. * @default document.body */ container?: RefObject<HTMLElement | null>; } export declare function Combobox(props: ComboboxProps): import("react/jsx-runtime").JSX.Element;