UNPKG

vinyl-component-blocks

Version:

Modular, Reusable, and Styled UI Component Library. Stop repeating work, install, call, use, modify.

21 lines 779 B
import React, { HTMLAttributes } from 'react'; import { ComponentSize } from '../../config/sizes'; export type SelectOption = { label: string; value: string; }; export type SelectChangeHandler = (option: SelectOption | undefined) => void; export interface SelectProps extends Omit<HTMLAttributes<HTMLDivElement>, 'className' | 'width' | 'option' | 'onChange'> { className?: string; size?: ComponentSize; disabled?: boolean; error?: boolean; width?: string; option?: SelectOption; listOptions?: SelectOption[]; onChange?: SelectChangeHandler; placeholder?: string; } declare const _default: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLDivElement>>; export default _default; //# sourceMappingURL=select.d.ts.map