@platformbuilders/fluid-react
Version:
Builders React for Fluid Design System
23 lines (22 loc) • 693 B
TypeScript
import { FC, SelectHTMLAttributes } from 'react';
import { SelectItemProps, SelectTriggerProps, SelectViewportProps } from '@radix-ui/react-select';
type SelectOptions = {
option: string;
value: string;
};
export type SelectProps = SelectHTMLAttributes<HTMLSelectElement> & {
id: string;
options: SelectOptions[];
disabled?: boolean;
helperMessage?: string;
label?: string;
placeholder?: string;
onValueChange: (value: string) => void;
defaultValue?: string;
value?: string;
style?: SelectTriggerProps;
styleItem?: SelectItemProps;
styleContentItem?: SelectViewportProps;
};
declare const Select: FC<SelectProps>;
export default Select;