Toggle

Install and import

yarn add @welcome-ui/toggle @xstyled/styled-components @xstyled/system react react-dom styled-components
import { Toggle } from '@welcome-ui/toggle'

Examples

Use checked property

Disabled

With the disabled property

ConnectedField

Examples with ConnectedField

{
"toggle": true,
"toogle-checked": true,
"toogle-disabled": true,
"toggle-label": false,
"disabled-label": true
}

Properties

NameType(s)DefaultRequired

Dependencies

Peer dependencies