Files
ersatztv/design-system/components/forms/Select.d.ts
T
2026-07-02 07:37:00 +02:00

24 lines
560 B
TypeScript

import * as React from "react";
export interface SelectOption {
value: string;
label: string;
}
export interface SelectProps {
label?: string;
value?: string;
onChange?: (e: React.ChangeEvent<HTMLSelectElement>) => void;
/** Options as strings or {value,label} objects. */
options?: (string | SelectOption)[];
disabled?: boolean;
size?: "sm" | "md";
fullWidth?: boolean;
style?: React.CSSProperties;
}
/**
* Native-backed select with ChicoryTV chrome and a custom chevron.
*/
export function Select(props: SelectProps): JSX.Element;