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

14 lines
444 B
TypeScript

import React from "react";
import type { UseFormRegister, RegisterOptions, FieldError } from "react-hook-form";
export interface Props extends React.ComponentPropsWithoutRef<"input"> {
label?: string;
name: string;
value?: string | number | readonly string[];
mode?: "primary" | "transparent" | "secondary" | "disabled";
register?: UseFormRegister<any>;
validations?: RegisterOptions;
error?: FieldError;
className?: string;
}