Skip to content

Instantly share code, notes, and snippets.

@ThaddeusJiang
Created September 28, 2018 07:15
Show Gist options
  • Save ThaddeusJiang/447700759557c8fda6cc286e8955a775 to your computer and use it in GitHub Desktop.
Save ThaddeusJiang/447700759557c8fda6cc286e8955a775 to your computer and use it in GitHub Desktop.
Simplest stories template
import * as React from 'react';
/* eslint-disable import/no-extraneous-dependencies */
import { storiesOf } from '@storybook/react';
// action
import { action } from '@storybook/addon-actions';
import EntityTypesInput from './index';
storiesOf('EntityTypes Input', module).add('default', () => (
<EntityTypesInput name="test" items={[1, 2, 3, 4]} value={[1, 3]} onChange={action('onChange')} />
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment