react-hook-form-chakra-fields
Version:
A collection of form fields on top of simple and accessible react component library [Chakra UI](https://chakra-ui.com/) and performant form library [React Hook Form](https://react-hook-form.com/), integrated with many other js/ts libraries.
14 lines (13 loc) • 606 B
TypeScript
import { ReactNode } from 'react';
import { FormControlProps } from '@chakra-ui/react';
import { GridItemProps } from '../types';
export interface FieldControlProps extends Omit<FormControlProps, 'helperText' | 'errorText' | 'id' | 'label'>, GridItemProps {
name: string;
id: string;
label?: ReactNode | string;
helperText?: ReactNode | string;
errorText?: ReactNode | string;
tip?: ReactNode | string;
}
declare const FieldControl: ({ errorText, helperText, label, children, tip, id, isRequired, ...props }: FieldControlProps) => JSX.Element;
export { FieldControl };