rharuow-ds
Version:
Modern React Design System with 20 components and auto color system. Define only 2 colors (primary/secondary) and get automatic variations (hover, light, dark) with proper text contrast (WCAG AA). Includes: Table, Card, Button, Chip, Pagination, Input, Te
16 lines (15 loc) • 582 B
TypeScript
import * as React from "react";
import type { SelectOption } from "./types";
export interface SelectProps extends React.SelectHTMLAttributes<HTMLSelectElement> {
name: string;
label?: string;
options: SelectOption[];
containerClassName?: string;
isClearable?: boolean;
searchable?: boolean;
filterPlaceholder?: string;
caseSensitive?: boolean;
filterFunction?: (option: SelectOption, searchTerm: string) => boolean;
}
declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLSelectElement>>;
export { Select };