import type { Key, PropsWithChildren, ReactElement, ReactNode } from 'react'; import type { BehaviorTrackingProps } from '../../core/types/behavior-tracking-props.js'; import type { DataTestId } from '../../core/types/data-props.js'; import type { StylingProps } from '../../core/types/styling-props.js'; /** * Props for the Combobox.Option component. * @public */ export type ComboboxOptionProps = PropsWithChildren & StylingProps & DataTestId & BehaviorTrackingProps & { /** * The string value submitted when this option is selected. */ value: string; /** * Plain-text label used for filtering and as the react-select option key when * `children` is a non-string `ReactNode`. When omitted and `children` is a * plain string, `children` is used automatically. */ textValue?: string; /** * Unique key for the option within the list. Defaults to `value` when omitted. */ id?: Key; /** * Accessible label for the option, used when `children` is not descriptive enough for screen readers. */ 'aria-label'?: string; /** * When `true`, the option is visible but cannot be selected. */ disabled?: boolean; }; /** * Typeguard that checks if a ReactNode is a Combobox.Option element. * @internal */ export declare function isComboboxOptionElement(child: ReactNode): child is ReactElement; /** * `Combobox.Option` defines a single selectable option within the combobox. * It is only valid within `Combobox.Content` or `Combobox.Group`. * * @example * ```tsx * * Red * * ``` * @public */ export declare function ComboboxOption(props: ComboboxOptionProps): null; //# sourceMappingURL=ComboboxOption.d.ts.map