Browse Source

Configure addon-options for Storybook

master
Loëck Vézien 7 years ago
parent
commit
5af4beda86
No known key found for this signature in database GPG Key ID: CBCDCE384E853AC4
  1. 2
      .storybook/addons.js
  2. 8
      .storybook/config.js

2
.storybook/addons.js

@ -1,3 +1,3 @@
import '@storybook/addon-actions/register'
import '@storybook/addon-knobs/register'
import '@storybook/addon-actions/register'
import '@storybook/addon-options/register'

8
.storybook/config.js

@ -1,6 +1,7 @@
import React from 'react'
import { configure, addDecorator } from '@storybook/react'
import { withKnobs } from '@storybook/addon-knobs'
import { setOptions } from '@storybook/addon-options'
import { ThemeProvider } from 'styled-components'
import 'styles/global'
@ -19,4 +20,11 @@ addDecorator(story => (
addDecorator(withKnobs)
const { name, repository: url } = require('../package.json')
setOptions({
name,
url,
})
configure(loadStories, module)

Loading…
Cancel
Save