@lifespikes/ui
Version:
Lifespikes ui
16 lines (15 loc) • 549 B
TypeScript
import { Select } from '@lifespikes/ui/components/ui';
import { FC, FocusEventHandler, PropsWithoutRef } from 'react';
export interface DynamicSelectOption {
label: string;
value: string;
}
export interface DynamicSelectProps extends Omit<PropsWithoutRef<typeof Select>, 'value'> {
label?: string;
selectLabel?: string;
options?: DynamicSelectOption[];
onValueChange?: (value: string) => void;
value?: string;
onFocus?: FocusEventHandler<HTMLDivElement>;
}
export declare const DynamicSelect: FC<DynamicSelectProps>;