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
17 lines (16 loc) • 652 B
TypeScript
import * as React from "react";
import type { SelectOption } from "./types";
export interface AsyncSelectProps extends Omit<React.SelectHTMLAttributes<HTMLSelectElement>, 'options'> {
name: string;
label?: string;
loadOptions: (inputValue?: string) => Promise<SelectOption[]>;
containerClassName?: string;
isClearable?: boolean;
defaultOptions?: SelectOption[] | boolean;
loadingMessage?: string;
noOptionsMessage?: string;
searchable?: boolean;
debounceMs?: number;
}
declare const AsyncSelect: React.ForwardRefExoticComponent<AsyncSelectProps & React.RefAttributes<HTMLSelectElement>>;
export { AsyncSelect };