ds-smart-ui
Version:
Smart UI v1.0.5 — A production-ready React component library by PT Praisindo Teknologi. Covers inputs, navigation, data display, feedback, and layout with a unified design system, semantic Typography tokens, and full Storybook documentation.
32 lines (31 loc) • 1.28 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/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;
showRequired?: boolean;
disabled?: boolean;
fullWidth?: boolean;
helperText?: string;
error?: boolean;
options: Option[];
id?: string;
sizeProp?: FormSizeTypes;
colorProp?: FormColorTypes;
roundedProp?: FormRoundedTypes;
}
declare const Select: import('react').ForwardRefExoticComponent<SelectProps & import('react').RefAttributes<HTMLSelectElement>>;
export default Select;