SelectProps beta
TypeAlias of @v12-engine/client/kit
ts
export type SelectProps<T extends string> = {
value: T | undefined;
onValue: (value: T) => void;
options: readonly Option<T>[];
none?: string;
placeholder?: string;
size?: 'sm' | 'md';
wide?: boolean;
class?: string;
disabled?: boolean;
'data-tip'?: string;
'aria-label'?: string;
mount?: Element;
ark?: Partial<Omit<ArkSelect.RootProps<{
value: string;
label: string;
disabled?: boolean;
}>, 'collection' | 'value' | 'children'>>;
searchable?: boolean | 'auto';
};What a Select is given: the options, the one picked and what to tell when another is