UNPKG

@nexusui/components

Version:

These are custom components specially-developed for NexusUI applications. They will make your life easier by giving you out-of-the-box implementations for various high-level UI elements that you can drop directly into your application.

18 lines (17 loc) 786 B
import React from 'react'; import { FormControlLabelProps } from '@mui/material/FormControlLabel'; import { ControllerProps } from 'react-hook-form'; import { CheckboxProps } from '@mui/material/Checkbox'; export type FormControllerProps = Omit<ControllerProps, 'control' | 'name' | 'rules' | 'render'>; export interface FormCheckboxProps extends Omit<FormControlLabelProps, 'control' | 'label'> { name: string; label?: React.ReactNode; rules?: ControllerProps['rules']; controllerProps?: FormControllerProps; checkBoxProps?: CheckboxProps; } /** * @param {FormCheckboxProps} props - provides the properties fo React component * @return {ReactNode} - provides the react component to be ingested **/ export declare const FormCheckbox: React.FC<FormCheckboxProps>;