@dossierhq/design
Version:
The design system for Dossier.
19 lines (18 loc) • 690 B
TypeScript
import type { FunctionComponent, OptionHTMLAttributes, ReactNode, SelectHTMLAttributes } from 'react';
interface SelectDisplayProps {
fullWidth?: boolean;
value?: SelectHTMLAttributes<HTMLSelectElement>['value'];
onChange?: React.ChangeEventHandler<HTMLSelectElement>;
children: ReactNode;
}
interface SelectDisplayOptionProps {
value: OptionHTMLAttributes<HTMLOptionElement>['value'];
disabled?: boolean;
children: ReactNode;
}
/** @public */
export interface SelectDisplayComponent extends FunctionComponent<SelectDisplayProps> {
Option: FunctionComponent<SelectDisplayOptionProps>;
}
export declare const SelectDisplay: SelectDisplayComponent;
export {};