ds-smart-ui
Version:
Smart UI is a React component library that helps you build accessible and responsive web applications.
29 lines (27 loc) • 1.17 kB
TypeScript
import { VariantProps } from 'class-variance-authority';
import { FormRoundedTypes, FormSizeTypes, FormColorTypes } from '../../../types/form-types';
declare const selectVariants: (props?: ({
size?: "sm" | "md" | "lg" | null | undefined;
rounded?: "sm" | "md" | "lg" | "none" | "full" | null | undefined;
color?: "dark" | "light" | "primary" | "secondary" | "success" | "danger" | "warning" | "info" | null | undefined;
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
export interface Option {
value: string;
label: string;
}
export interface SelectProps extends Omit<React.SelectHTMLAttributes<HTMLSelectElement>, "size">, VariantProps<typeof selectVariants> {
label?: string;
rounded?: FormRoundedTypes;
size?: FormSizeTypes;
color?: FormColorTypes;
placeholder?: string;
required?: boolean;
disabled?: boolean;
fullWidth?: boolean;
helperText?: string;
error?: boolean;
options: Option[];
id?: string;
}
declare const Select: import('react').ForwardRefExoticComponent<SelectProps & import('react').RefAttributes<HTMLSelectElement>>;
export default Select;