eldav1d-marvel-ui
Version:
UI library for (and from) Playing with Marvel API
40 lines • 1.18 kB
TypeScript
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