import * as React from 'react';
import { Toggle } from './Toggle';
export default {
title: 'Atoms/Toggle',
component: Toggle,
};
export const toggle = (args) => Turn a cool thing on;
export const interactive = (args) => {
const [state, setState] = React.useState(true);
return (
{
setState(val);
args.onChange(val);
}}
>
Turn a cool thing on
);
};