Skip to content

Commit

Permalink
Added Knobs to storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
nachocs committed Jun 24, 2019
1 parent c1d10f7 commit e99554e
Show file tree
Hide file tree
Showing 5 changed files with 314 additions and 6 deletions.
1 change: 1 addition & 0 deletions .storybook/addons.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import '@storybook/addon-actions/register';
import '@storybook/addon-notes/register-panel';
import '@storybook/addon-a11y/register';
import '@storybook/addon-knobs/register';
3 changes: 3 additions & 0 deletions .storybook/config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { configure } from '@storybook/react';
import { addDecorator } from '@storybook/react';
import { withA11y } from '@storybook/addon-a11y';
import { withKnobs } from '@storybook/addon-knobs';

// automatically import all files ending in *.stories.js
const req = require.context('../stories', true, /\.stories\.jsx$/);
function loadStories() {
Expand All @@ -9,3 +11,4 @@ function loadStories() {

configure(loadStories, module);
addDecorator(withA11y);
addDecorator(withKnobs);
Loading

0 comments on commit e99554e

Please sign in to comment.