UNPKG

climb-onyx-gui

Version:
29 lines (27 loc) 1.08 kB
import { ProjectProps } from '../interfaces'; interface GenericDropdownProps { options: string[]; titles?: Map<string, string>; placeholder?: string; onChange: React.ChangeEventHandler<HTMLSelectElement>; } interface DropdownProps extends GenericDropdownProps { value: string; isClearable?: boolean; isDisabled?: boolean; } interface MultiDropdownProps extends GenericDropdownProps { value: string[]; } interface GenericChoiceProps extends ProjectProps { field: string; } interface ChoiceProps extends DropdownProps, GenericChoiceProps { } interface MultiChoiceProps extends MultiDropdownProps, GenericChoiceProps { } declare function Dropdown(props: DropdownProps): import("react/jsx-runtime").JSX.Element; declare function MultiDropdown(props: MultiDropdownProps): import("react/jsx-runtime").JSX.Element; declare function Choice(props: ChoiceProps): import("react/jsx-runtime").JSX.Element; declare function MultiChoice(props: MultiChoiceProps): import("react/jsx-runtime").JSX.Element; export { Choice, Dropdown, MultiChoice, MultiDropdown };