// @flow
/* eslint-disable react-hooks/rules-of-hooks */
import * as React from 'react';
import Toggle from './Toggle';
import notes from './Toggle.stories.md';
export const basic = () => (
);
export const rightAligned = () => (
);
export const controlled = () => {
const [isOn, setIsOn] = React.useState(false);
const onToggle = () => setIsOn(!isOn);
return (
);
};
export const disabled = () => ;
export default {
title: 'Components/Toggle',
component: Toggle,
parameters: {
notes,
},
};