seti-ramesesv1
Version:
Reusable components and context for Next.js apps
22 lines (21 loc) • 682 B
TypeScript
export type Option = {
value: string;
title: string;
[key: string]: string | number | undefined;
};
export type SelectProps = {
optionKey?: string;
label?: string;
disabled?: boolean;
size?: "sm" | "md" | "lg";
value?: string;
defaultValue?: string;
onChange?: (value: string) => void;
options: Option[];
className?: string;
fullWidth?: boolean;
readOnly?: boolean;
helperText?: string;
};
export declare function Select({ optionKey, label, disabled, size, value, defaultValue, onChange, options, className, fullWidth, readOnly, helperText, }: SelectProps): import("react/jsx-runtime").JSX.Element;
export default Select;