forked from github/plane
20 lines
422 B
TypeScript
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 }[];
|
|
};
|