UNPKG

@lifespikes/ui

Version:
16 lines (15 loc) 549 B
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>;