Toogle
The toggle component can be used to receive a simple yes or no type of answer from the user by choosing a single option from two options available in multiple sizes.
Usage
Code EditorCopyimport { Toogle } from '@erudilabs/alma'
Component
Here preview and detail explain of Toogle
component
Default
Code EditorCopy<Toogle name="subscribe" />
Disabled
Code EditorCopy<Toogle name="subscribe_disabled" disabled/>
Props Reference
Prop
Type
Default
id?
string
-
testId?
string
-
className?
string
-
name
string
-
defaultChecked?
boolean
false
disabled?
boolean
false
onChange?
(e: ChangeEvent) => void
-