mirror of
https://github.com/hanzoai/design.git
synced 2026-10-30 14:58:37 +00:00
The single source of truth for every Hanzo surface: monochrome opacity-ladder tokens (dark-default), self-contained core/forms/overlays/navigation components (each with .d.ts + .prompt.md), the mark/wordmark + provider/partner logos, and the specimen-card guidelines. One import: @hanzoai/design/styles.css.
10 lines
405 B
TypeScript
10 lines
405 B
TypeScript
/** Dropdown select. Same chrome as Input plus a chevron. */
|
|
export interface SelectOption { value: string; label: string }
|
|
export interface SelectProps extends Omit<React.SelectHTMLAttributes<HTMLSelectElement>, 'onChange'> {
|
|
options?: (SelectOption | string)[];
|
|
value?: string;
|
|
onChange?: (value: string) => void;
|
|
placeholder?: string;
|
|
}
|
|
export function Select(props: SelectProps): JSX.Element;
|