@blockscout/ui-toolkit
Version:
A comprehensive collection of reusable Chakra UI components and theme system for Blockscout's projects
15 lines (14 loc) • 897 B
TypeScript
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;
}
declare const FormFieldCheckboxGroupContent: <FormFields extends FieldValues, Name extends Path<FormFields>>(props: FormFieldCheckboxGroupProps<FormFields, Name>) => React.JSX.Element;
export declare const FormFieldCheckboxGroup: typeof FormFieldCheckboxGroupContent;
export {};