UNPKG

fictoan-react

Version:

A full-featured, designer-friendly, yet performant framework with plain-English props and focus on rapid iteration.

23 lines (22 loc) 713 B
import { CommonAndHTMLProps } from '../../Element/constants'; export type SelectElementType = HTMLSelectElement; export type OptionElementType = HTMLOptionElement; export interface OptionProps { value: string; label: string; disabled?: boolean; selected?: boolean; } export interface OptGroupProps { label: string; options: OptionProps[]; } export interface SelectCustomProps { options: OptionProps[] | OptGroupProps[]; label?: string; helpText?: string; errorText?: string; onChange?: (value: string) => void; } export type SelectProps = Omit<CommonAndHTMLProps<SelectElementType>, keyof SelectCustomProps> & SelectCustomProps; //# sourceMappingURL=constants.d.ts.map