SearchSelectProps beta
TypeAlias of @v12-engine/client/kit
ts
export type SearchSelectProps = {
value: string | undefined;
onValue: (value: string) => void;
options: readonly SearchOption[];
none?: string;
placeholder?: string;
find?: (options: readonly SearchOption[], query: string) => readonly SearchOption[];
free?: string;
onHighlight?: (value: string | undefined) => void;
size?: 'sm' | 'md';
class?: string;
'data-tip'?: string;
'aria-label'?: string;
mount?: Element;
};What a SearchSelect is given: the options, the one picked, how they are found by typing and what to tell when one is picked