UNPKG

grepsr-ui-elements

Version:

36 lines (35 loc) 916 B
/// <reference types="react" /> import PropTypes from 'prop-types'; interface Option { id?: number; value: string; label: string; type?: string | number; } interface DropdownProps { value?: string | '' | any | Array<any>[]; id?: string; onChange?: (e: any) => void; options?: Array<Option>; fullWidth?: boolean | undefined; size: 'medium' | 'small' | any | undefined; multiple?: boolean | undefined; renderValue?: (value: string[]) => string[] | undefined; sx?: any; label?: string; needUpperCase?: boolean; open?: boolean; handleClose?: (l: any) => void; handleOpen?: () => void; } export { DropdownProps }; declare const GrepsrDropdownDigest: { (props: DropdownProps): JSX.Element; defaultProps: { size: string; }; propTypes: { size: PropTypes.Validator<string>; }; }; export default GrepsrDropdownDigest;