Add storybook
This commit is contained in:
parent
658424efa0
commit
87e5cafb77
5 changed files with 9386 additions and 61 deletions
14
.storybook/main.js
Normal file
14
.storybook/main.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
const svgrPlugin = require("vite-plugin-svgr");
|
||||
|
||||
module.exports = {
|
||||
stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
|
||||
addons: ["@storybook/addon-links", "@storybook/addon-essentials"],
|
||||
framework: "@storybook/react",
|
||||
core: {
|
||||
builder: "storybook-builder-vite",
|
||||
},
|
||||
async viteFinal(config) {
|
||||
config.plugins.push(svgrPlugin());
|
||||
return config;
|
||||
},
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue