plane/ui/Select/types.d.ts

20 lines
422 B
TypeScript
Raw Normal View History

2022-11-19 14:21:26 +00:00
import type {
UseFormRegister,
RegisterOptions,
FieldError,
} from "react-hook-form";
export type Props = {
label?: string;
id: string;
name: string;
value?: string | number | readonly string[];
className?: string;
register?: UseFormRegister<any>;
disabled?: boolean;
validations?: RegisterOptions;
error?: FieldError;
autoComplete?: "on" | "off";
options: { label: string; value: any }[];
};