import React, {useState} from 'react' import {centerLayoutDecorator} from '../.storybook/decorators' import {Toggle} from './toggle' export default { component: Toggle, title: 'Input|Toggle', decorators: [centerLayoutDecorator()] } export const Interactive = () => { const [isChecked, setChecked] = useState(false) return ( setChecked(event.target.checked)} /> ) } export const WithoutLabel = () => { const [isChecked, setChecked] = useState(false) return setChecked(!isChecked)} /> } export const Unchecked = () => {}} /> export const Checked = () => {}} /> export const Disabled = () => {}} disabled />