import * as React from 'react'; import * as RadioStories from './Radio.stories.mdx'; import {generateChromaticStory} from '../../../chromatic/utils'; import Radio from './Radio'; // @ts-ignore TS7006 const Hovers = args => { const types = [ {name: 'unchecked', checked: false}, {name: 'checked', checked: true}, {disabled: true, name: 'disabled', checked: false}, {invalid: true, name: 'error', checked: false}, ]; return (
{types.map(t => ( Dark: {t.name} ))}
{types.map(t => ( Light: {t.name} ))}
); }; export const Default = generateChromaticStory(RadioStories, { storiesToHover: [Hovers], }); const {includeStories, ...meta} = RadioStories.default; export default meta;