import React, { FC, useState } from 'react'; import { boolean, radios, text, withKnobs } from '@storybook/addon-knobs'; import { Wrapper } from '../../..'; import { Switch, SwitchPropsType } from './switch.component'; export default { title: 'GEENEE-UI/Form', component: Switch, decorators: [ withKnobs ] }; const switchSize: Record = { 'md - default': 'md', lg: 'lg' }; type SwitchCheckedProps = { defaultChecked?: boolean; label?: SwitchPropsType['label']; size?: SwitchPropsType['size']; } const SwitchChecked: FC = (props) => { const [ checked, setChecked ] = useState(props.defaultChecked); const handleClick = (value: boolean) => { setChecked(value); }; return ( <> ); }; SwitchChecked.defaultProps = { defaultChecked: false }; export const _Switch = () => { const { size } = Switch.defaultProps || {}; return ( ); }; // export const States = () => ( //
//
//

Small

// //
//
//

Default

// //
//
//

WithTitle

// //
//
//

Default checked

// //
//
// );