UNPKG

@blockscout/ui-toolkit

Version:

A comprehensive collection of reusable Chakra UI components and theme system for Blockscout's projects

13 lines (12 loc) 803 B
import { default as React } from 'react'; import { FieldValues, Path } from 'react-hook-form'; import { FormFieldPropsBase } from './types'; import { CheckboxGroupProps, CheckboxProps } from '../../../chakra/checkbox'; export interface FormFieldCheckboxGroupProps<FormFields extends FieldValues, Name extends Path<FormFields> = Path<FormFields>> extends Pick<FormFieldPropsBase<FormFields, Name>, 'rules' | 'name' | 'onChange' | 'readOnly' | 'controllerProps'>, Omit<CheckboxGroupProps, 'name' | 'onChange'> { options: Array<{ label: string; value: string; }>; itemProps?: CheckboxProps; } export declare const FormFieldCheckboxGroup: <FormFields extends FieldValues, Name extends Path<FormFields>>(props: FormFieldCheckboxGroupProps<FormFields, Name>) => React.JSX.Element;