import * as React from 'react'import { Toggle } from 'welcome-ui/Toggle'const Example = () => {const [toggle, setToggle] = React.useState(false)return (<Toggle aria-label="Toggle component" checked={toggle} onClick={() => setToggle(!toggle)} />)}export default Example
Label
Use Field component to add a label
Hint
Use Field component to add a hint
Disabled
Use disabled property to disable the Toggle.
Visibility Icon
Use withVisibilityIcon property to add an eye / eye-slash icon to toggle visibility.
Size
Use size property with option lg, md or sm to set the size of the Toggle.