air-command-ui-library
Version:
A React component library for Air Command System with Storybook
25 lines (24 loc) • 633 B
TypeScript
import React from 'react';
export type Theme = 'light' | 'dark';
export type Size = 'sm' | 'md' | 'lg';
export interface ComboBoxOption {
value: string;
label: string;
disabled?: boolean;
}
export interface ComboBoxProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
options: ComboBoxOption[];
value?: string;
onChange?: (_value: string) => void;
label?: string;
placeholder?: string;
disabled?: boolean;
theme?: Theme;
size?: Size;
searchable?: boolean;
width?: string;
error?: boolean;
helperText?: string;
required?: boolean;
name?: string;
}