UNPKG

eldav1d-marvel-ui

Version:

UI library for (and from) Playing with Marvel API

41 lines (40 loc) 1.18 kB
import { ChangeEventHandler } from 'react'; export interface IInputSelectProps { /** * Handles change events on the select. * @param event - The change event. */ onChange: ChangeEventHandler<HTMLSelectElement>; /** * Name of the select input. * Will apply on object passed to the onChange function. **/ selectName: string; /** * Available options for the select. */ options: string[]; /** * Literal strings corresponding to the options. */ optionLiterals: string[]; /** * Optional aria label for the select input. */ ariaLabel?: string; /** * Optional controlled value for the select input. */ controlledValue?: string; /** * Placeholder for the select input. */ placeholder: string; /** * Optional class name for the select input. */ className?: string; } declare const InputSelect: ({ ariaLabel, onChange, selectName, options, optionLiterals, placeholder, controlledValue, className, }: IInputSelectProps) => import("react/jsx-runtime").JSX.Element; export default InputSelect; //# sourceMappingURL=InputSelect.d.ts.map