Switch Toggle
This is the <SwitchToggle />
component
Basic Switch Toggle
- Presentation
- Source
<SwitchToggle onChange={toggleChecked} checked={checked} />
Component API
Name | Type | Default | Description | |
---|---|---|---|---|
dataTestId | sting | 'switch-toggle' | Test id for integration/unit tests | |
checked | boolean | false | Set toggle to true or false | |
onChange | () => void | - | Change toggle state | |
size | `sm | md` | TODO | Change toggle state |