UNPKG

@start-base/react-form-elements

Version:

Simplify form elements and form management. Selection of user friendly inputs and wide customization abilities to match your design and functionality.

20 lines (17 loc) 613 B
import React from 'react'; import { FieldError } from 'react-hook-form'; interface SwitchProps { name: string; onChange: (event: React.ChangeEvent<HTMLInputElement>) => void; label?: string | React.ReactNode; checked?: boolean; inputClassName?: string; labelClassName?: string; errorClassName?: string; disabled?: boolean; error?: boolean | string | { message?: string; } | null | undefined | FieldError; } declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLInputElement>>; export { type SwitchProps, Switch as default };