export interface SearchableSelectOption { value: string; label: string; description?: string; disabled?: boolean; } export interface SearchableSelectProps { /** Label shown as prefix in the trigger button */ label?: string; /** Placeholder when nothing is selected */ placeholder?: string; /** Available options */ options: SearchableSelectOption[]; /** Currently selected value */ value: string; /** Callback when value changes */ onChange: (value: string) => void; /** Placeholder for the search input inside the dropdown */ searchPlaceholder?: string; /** Whether the select is disabled */ disabled?: boolean; /** Additional CSS class for the root wrapper */ className?: string; /** Whether to show a clear button when a non-default value is selected */ clearable?: boolean; /** The value that represents "nothing selected" (defaults to empty string) */ emptyValue?: string; /** Which edge of the trigger button the dropdown aligns to (default: 'left') */ dropdownAlign?: 'left' | 'right'; } /** * SearchableSelect — A dropdown with a built-in search input for filtering * long option lists. Keyboard accessible (arrow keys, enter, escape). * * The dropdown is a Radix Popover, not a `createPortal` into `document.body`. * A modal Radix dialog sets `pointer-events: none` on the body and traps focus * in its content, so a bare body portal renders but is inert — unclickable * options, unfocusable search box. As a Popover it joins Radix's layer and * focus-scope stacks, so it stays interactive inside a dialog, and it opens in * `modal` mode there so it carries its own scroll lock (the dialog's otherwise * cancels wheel/touch over the option list). Outside a dialog it stays * non-modal, which avoids locking page scroll just to open a dropdown. * * @example * ```tsx * * ``` */ export declare function SearchableSelect({ label, placeholder, options, value, onChange, searchPlaceholder, disabled, className, clearable, emptyValue, dropdownAlign, }: SearchableSelectProps): import('react').JSX.Element;