import _ from 'lodash'; import React, { useState } from 'react'; import createClass from 'create-react-class'; import { Meta, Story } from '@storybook/react'; import RadioButton, { IRadioButtonProps } from './RadioButton'; export default { title: 'Controls/RadioButton', component: RadioButton, parameters: { docs: { description: { component: (RadioButton as any).peek.description, }, }, }, } as Meta; /* Interactive */ export const Interactive: Story = (args) => { const style = { listStyleType: 'none', display: 'flex', alignItems: 'center', }; const [selected, setSelected] = useState(false); const handleSelected = (value) => { setSelected(!value); }; return ( ); }; /* States */ export const States: Story = (args) => { const style = { display: 'flex', alignItems: 'center', }; const Component = createClass({ render() { return ( ); }, }); return ; };