dgz-ui-shared
Version:
Custom ui library using React.js, Shadcn/ui, TailwindCSS, Typescript, dgz-ui library
16 lines • 765 B
TypeScript
import type { FieldValues } from 'react-hook-form';
import { type CheckboxProps, type FormItemProps } from 'dgz-ui/form';
export type MyCheckboxProps<TFieldValues extends FieldValues> = FormItemProps<TFieldValues> & CheckboxProps;
/**
* MyCheckbox is a checkbox component with optional react-hook-form integration.
*
* @template TFieldValues - Form values type used by react-hook-form.
* @param control
* @param name
* @param label
* @param rules
* @param helperText
* @param props - Checkbox and form item props.
*/
export declare const MyCheckbox: <TFieldValues extends FieldValues>({ control, name, label, rules, helperText, ...props }: MyCheckboxProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
//# sourceMappingURL=MyCheckbox.d.ts.map