forked from github/plane
14 lines
444 B
TypeScript
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;
|
||
|
}
|