Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const sizeStory = storiesOf('size', module).addDecorator(themeDecorator(addons))
Object.keys(Icon.sizes).forEach(size =>
sizeStory.add(size, _ => (
))
)
const idStory = storiesOf('id', module).addDecorator(themeDecorator(addons))
Object.keys(Icon.ids).forEach(id =>
idStory.add(id, _ => (
))
)
const styleStory = storiesOf('style', module)
.addDecorator(themeDecorator(addons))
.add('css prop', _ => (
svg': { fill: 'yellow' } }}
id={Icon.ids.check}
size={Icon.sizes.large}
/>
))
/>
)
}
}
storiesOf('Checkbox', module)
.addDecorator(PaddingDecorator)
.addDecorator(themeDecorator(addons))
.add('default', _ => )
.add('checked', _ => (
))
.add('error', _ => (
<div>
</div>
))
.add('disabled', _ => (
))
.add('disabled & errored', _ => (
))