digitinary-ui
Version:
Digitinary UI Library
29 lines (28 loc) • 665 B
TypeScript
import React from 'react';
import './style.scss';
type Option = {
value: string;
view: React.ReactNode;
};
type Value = {
item: Object;
[key: string]: any;
};
type DropDownProps = {
label?: string;
placeholder?: string;
options?: Option[];
value?: Value;
size?: string;
setValue?: React.Dispatch<React.SetStateAction<string>>;
clearable?: boolean;
errorMessage?: string;
required?: boolean;
disabled?: boolean;
defaultIconTitle?: string;
showDefaultIcon?: boolean;
defaultIcon?: React.ReactNode;
className?: string;
};
declare const DropDown: React.FC<DropDownProps>;
export default DropDown;