UNPKG

@try-at-software/input-elements

Version:

A package providing different input elements that are extensible and easily configurable for your custom needs.

12 lines (11 loc) 459 B
/// <reference types="react" /> import { IBaseInputElementDynamicProps } from '../IBaseInputElementDynamicProps'; import { IDropdownInputOption } from './IDropdownInputOption'; export interface IDropdownInputProps extends IBaseInputElementDynamicProps { options: IDropdownInputOption[]; /** * The default option for the dropdown. */ defaultOption: IDropdownInputOption; renderOption?: (optionId: string) => JSX.Element; }