UNPKG

summit-kit

Version:

A React component library for building modern web applications with an earthy and outdoorsy flair.

27 lines (26 loc) 830 B
import { ReactNode, SelectHTMLAttributes } from 'react'; export type SelectOption = { value: string | number; label: ReactNode; disabled?: boolean; }; export type SelectProps = SelectHTMLAttributes<HTMLSelectElement> & { className?: string; label?: ReactNode; labelClassName?: string; containerClassName?: string; invalid?: boolean; descriptionId?: string; errorId?: string; options?: SelectOption[]; }; export declare const Select: import('react').ForwardRefExoticComponent<SelectHTMLAttributes<HTMLSelectElement> & { className?: string; label?: ReactNode; labelClassName?: string; containerClassName?: string; invalid?: boolean; descriptionId?: string; errorId?: string; options?: SelectOption[]; } & import('react').RefAttributes<HTMLSelectElement>>;