fui-fancyui
Version:
FancyUI Libary
17 lines (16 loc) • 550 B
TypeScript
import { SelectHTMLAttributes } from 'react';
export type TDropDownSelectItem = {
value: string;
key: string;
};
export type TDropDownSelect = {
align?: 'left' | 'center';
values?: TDropDownSelectItem[] | string[];
value?: string;
disabled?: boolean;
placeholder?: string;
emptySelect?: boolean;
children?: React.ReactNode;
};
export type TDropDownSelectNativeAttrs = Omit<SelectHTMLAttributes<HTMLSelectElement>, 'type'>;
export type TDropDownSelectWithNativeAttrs = TDropDownSelect & TDropDownSelectNativeAttrs;