@starter-ui/core
Version:
This is a UI Components built with the utility classes from Tailwind CSS.
38 lines (37 loc) • 968 B
TypeScript
import { ReactNode } from 'react';
export interface ISelectOptionType {
value: string;
name: ReactNode | string;
color?: string;
descriptions?: ReactNode | string;
disabled?: boolean;
isChildren?: boolean;
level?: number;
className?: string;
}
export interface Props {
id?: string;
options: ISelectOptionType[];
value?: string;
placeholder?: string;
isLoading?: boolean;
disabled?: boolean;
required?: boolean;
isError?: boolean;
label?: string;
helperText?: string;
clearable?: boolean;
position?: 'top' | 'bottom';
color?: string;
radius?: string;
size?: string;
selectorIcon?: ReactNode;
className?: string;
labelClassName?: string;
buttonClassName?: string;
contentClassName?: string;
onChange?: (selectedValue: string, selected?: ISelectOptionType) => void;
onBlur?: () => void;
}
declare const Select: React.FC<Props>;
export default Select;