Skip to content

Commit eb3cde1

Browse files
committed
feat: Add storybook
1 parent f00dfa4 commit eb3cde1

23 files changed

+19565
-3909
lines changed

.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// "parser": "@typescript-eslint/parser",
44
"extends": [
55
"eslint:recommended",
6+
"plugin:storybook/recommended",
67
"plugin:react/recommended",
78
"plugin:react-hooks/recommended",
89
"plugin:jsx-a11y/strict",

.storybook/main.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
module.exports = {
2+
stories: [
3+
'../stories/**/*.stories.mdx',
4+
'../stories/**/*.stories.@(js|jsx|ts|tsx)',
5+
],
6+
addons: [
7+
'@storybook/addon-links',
8+
'@storybook/addon-essentials',
9+
'@storybook/addon-interactions',
10+
'@storybook/addon-a11y',
11+
],
12+
framework: '@storybook/react',
13+
core: {
14+
builder: 'webpack5',
15+
},
16+
};

.storybook/preview.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
export const parameters = {
2+
actions: { argTypesRegex: '^on[A-Z].*' },
3+
controls: {
4+
matchers: {
5+
color: /(background|color)$/i,
6+
date: /Date$/,
7+
},
8+
},
9+
};

0 commit comments

Comments
 (0)