UNPKG

@masaischool/lotus

Version:

Masai UI component library designed to work seamlessly with Chakra UI

20 lines (19 loc) 752 B
import { ReactElement } from 'react'; export interface Props { options: { text: string; icon?: ReactElement | undefined; }[]; placeholder: string; label?: string; getValueCallback: (value: string) => void; errorMessage?: string; isInvalid?: boolean; disabled?: boolean; value?: string; leftIcon?: ReactElement | undefined; appendGraduationPassYearsInOptions?: boolean; appendTwelfthPassYearsInOptions?: boolean; width?: string; } export declare const Dropdown: ({ label, options, placeholder, getValueCallback, errorMessage, isInvalid, disabled, value, leftIcon, appendGraduationPassYearsInOptions, appendTwelfthPassYearsInOptions, width, }: Props) => JSX.Element;