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.

17 lines (16 loc) 738 B
import React from 'react'; import { ControllerProps, UseControllerProps } from 'react-hook-form'; import { FormControlLabelProps } from '@mui/material/FormControlLabel'; import { SwitchProps } from '@mui/material/Switch'; export interface FormToggleProps extends Omit<FormControlLabelProps, 'name' | 'label' | 'control'> { name: string; label?: string; rules?: UseControllerProps['rules']; controllerProps?: Omit<ControllerProps, 'name' | 'control' | 'rules' | 'render'>; switchProps?: SwitchProps; } /** * @param {FormToggleProps} props - provides the properties fo React component * @return {ReactNode} - provides the react component to be ingested **/ export declare const FormToggle: React.FC<FormToggleProps>;