ritz078/react-filters

View on GitHub
stories/CheckBox.story.js

Summary

Maintainability
A
55 mins
Test Coverage
import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import { Toggle } from '../components';
import Container from './Container';

storiesOf('Checkbox Button', module)
  .addDecorator((story) => <Container action={action} value={false}>{story()}</Container>)
  .add('with a text', () => (
    <Toggle
      name='basic'
      type='checkbox'
    />
  ))
  .add('with no text', () => (
    <Toggle
      name='no-text'
      label='hello'
      count={6}
      disabled
      type='checkbox'
    />
  ));