Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
Add SmartKnobs to grab all properties by default
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielagabriel committed Jul 6, 2020
1 parent e554080 commit 065653a
Show file tree
Hide file tree
Showing 4 changed files with 6,007 additions and 2,367 deletions.
6 changes: 6 additions & 0 deletions .storybook/main.js
Expand Up @@ -13,6 +13,10 @@ module.exports = {
},
{
loader: require.resolve('react-docgen-typescript-loader'),
options: {
tsconfigPath: path.resolve(__dirname, '../tsconfig.json'),
shouldExtractLiteralValuesFromEnum: true,
},
},
{
loader: require.resolve('@storybook/source-loader'),
Expand All @@ -27,6 +31,8 @@ module.exports = {
},
stories: ['../src/**/story.(tsx|mdx)', '../src/**/*.story.(tsx|mdx)'],
addons: [
'@storybook/preset-typescript',

'@storybook/addon-knobs',
'@storybook/addon-actions',
'@storybook/addon-links',
Expand Down
3 changes: 2 additions & 1 deletion .storybook/preview.js
@@ -1,4 +1,4 @@
import React from 'react'
import { withSmartKnobs } from 'storybook-addon-smart-knobs'
import { addDecorator, addParameters } from '@storybook/react'
import { withKnobs } from '@storybook/addon-knobs'
import { withA11y } from '@storybook/addon-a11y'
Expand All @@ -19,5 +19,6 @@ addParameters({
},
})

addDecorator(withSmartKnobs())
addDecorator(withKnobs)
addDecorator(withA11y)

0 comments on commit 065653a

Please sign in to comment.