Variable: Toggle
constToggle:ForwardRefExoticComponent<ToggleProps&RefAttributes<InputRefType>>
Defined in: components/Form/Toggle/index.tsx:39
Component
Toggle
Description
A checkbox or switch input component for forms.
Credits
Inspired by Aaron Iker switch/checkbox.
Param
The component props.
Param
The forwarded ref to the input element.
Returns
The rendered Toggle component.
Example
<Toggle type="switch" label="Enable feature" name="feature-toggle" />