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.
11 lines (10 loc) • 666 B
TypeScript
/// <reference types="react" />
import { OptionType } from '../types';
import { FieldPrototypeProps } from '../Builders';
import { SelectInputProps } from '../Inputs';
export declare type SelectFieldProps = Omit<SelectInputProps, 'isDisabled'> & FieldPrototypeProps & {
onChangeEffect?: (option: OptionType | Array<OptionType> | null) => void;
requiredFieldMessage?: string;
};
declare const SelectField: ({ name, label, required, disabled, helperText, id, tip, isMulti, options, onChangeEffect, colSpan, colStart, colEnd, rowSpan, rowStart, rowEnd, requiredFieldMessage, ...selectProps }: SelectFieldProps) => JSX.Element;
export { SelectField };