@explita/daily-toolset-form
Version:
A lightweight form toolkit for React built with developer ergonomics in mind. Includes a flexible Form component, useForm, useField, and useFormContext hooks for managing form state and validation with ease. Designed to simplify complex forms while remain
8 lines (7 loc) • 439 B
TypeScript
import React from "react";
import { FieldProps } from "../";
import { FieldContextType } from "../types";
export declare function useFieldName(): FieldContextType;
declare function FieldComponent<T extends Record<string, any> = Record<string, any>>({ name, label, as, isRequired, hideError, className, children, }: FieldProps<T>): React.JSX.Element;
export declare const Field: React.MemoExoticComponent<typeof FieldComponent>;
export {};