plane/ui/Input/types.d.ts

14 lines
444 B
TypeScript
Raw Normal View History

2022-11-19 14:21:26 +00:00
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;
}