plane/ui/Select/types.d.ts
2022-11-19 19:51:26 +05:30

20 lines
422 B
TypeScript

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 }[];
};