Skip to content

Commit

Permalink
chore: Add addon-controls to Storybook
Browse files Browse the repository at this point in the history
* Add Controls addon to Storybook. Will allow defining fewer 'case'
  stories, instead providing controls for viewing different component
  states in Storybook's UI.
  • Loading branch information
kiosion committed Nov 15, 2024
1 parent bb8c2f3 commit 581d4cb
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
},
"devDependencies": {
"@gravitational/build": "workspace:*",
"@storybook/addon-controls": "^8.3.4",
"@storybook/addon-toolbars": "^8.3.4",
"@storybook/components": "^8.3.4",
"@storybook/react": "^8.3.4",
Expand All @@ -43,8 +44,8 @@
"@testing-library/jest-dom": "^6.5.0",
"@testing-library/react": "^16.0.0",
"@testing-library/user-event": "^14.5.2",
"@types/jest": "^29.5.13",
"@types/history": "^4.7.11",
"@types/jest": "^29.5.13",
"@types/node": "^20.16.10",
"@types/react": "^18.3.10",
"@types/react-dom": "^18.3.0",
Expand Down
16 changes: 16 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion web/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const config: StorybookConfig = {
options: { builder: { viteConfigPath: 'web/.storybook/vite.config.mts' } },
},
staticDirs: ['public'],
addons: ['@storybook/addon-toolbars'],
addons: ['@storybook/addon-toolbars', '@storybook/addon-controls'],
};

export default config;

0 comments on commit 581d4cb

Please sign in to comment.