Skip to content

SearchFieldProps beta ​

TypeAlias of @v12-engine/client/kit

ts
export type SearchFieldProps = Omit<JSX.InputHTMLAttributes<HTMLInputElement>, 'value' | 'onInput'> & {
    value?: string;
    onValue?: (value: string) => void;
    size?: 'sm' | 'md';
    shortcut?: boolean;
};

What SearchField takes: words typed, told of each change, with a clear button, and the keys that focus it