Skip to content

Commit 6a885b7

Browse files
committed
Add storybook docs addon
1 parent 15cf852 commit 6a885b7

File tree

4 files changed

+1592
-58
lines changed

4 files changed

+1592
-58
lines changed

.storybook/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
2-
stories: ['../src/**/*.stories.[tj]sx'],
3-
addons: ['@storybook/preset-typescript', '@storybook/addon-actions/register', '@storybook/addon-storysource'],
2+
stories: ['../src/**/*.stories.([tj]sx|mdx)'],
3+
addons: ['@storybook/preset-typescript', '@storybook/addon-actions/register', '@storybook/addon-storysource', '@storybook/addon-docs'],
44
webpackFinal: async config => {
55
config.module.rules.push({
66
test: /\.(ts|tsx)$/,

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ Flexible, typed and easy to use React component to provide CSV, TSV and other de
88
- [TypeScript ESLint](https://typescript-eslint.io/)
99
- [React](https://reactjs.org/)
1010
- [Storybook](https://storybook.js.org/)
11+
- [Addon: Docs](https://github.com/storybookjs/storybook/tree/master/addons/docs)
12+
- [Addon: Source](https://github.com/storybookjs/storybook/tree/master/addons/storysource)
13+
- [Addon: Actions](https://github.com/storybookjs/storybook/tree/master/addons/actions)
1114

1215
## Resources
1316
- [Article: Using ESLint and Prettier in a TypeScript Project](https://www.robertcooper.me/using-eslint-and-prettier-in-a-typescript-project)

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"@babel/core": "^7.9.0",
1010
"@rollup/plugin-typescript": "^4.0.0",
1111
"@storybook/addon-actions": "^5.3.18",
12+
"@storybook/addon-docs": "^5.3.18",
1213
"@storybook/addon-info": "^5.3.18",
1314
"@storybook/addon-links": "^5.3.18",
1415
"@storybook/addon-storysource": "^5.3.18",

0 commit comments

Comments
 (0)