Initialize storybook

This commit is contained in:
Stephan
2022-09-29 20:45:14 +02:00
parent 227696e83b
commit a43e64f200
4 changed files with 43 additions and 2 deletions
+18
View File
@@ -0,0 +1,18 @@
module.exports = {
"stories": [
"../src/**/*.stories.mdx",
"../src/**/*.stories.@(js|jsx|ts|tsx)"
],
"addons": [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions"
],
"framework": "@storybook/react",
"core": {
"builder": "@storybook/builder-vite"
},
"features": {
"storyStoreV7": true
}
}
+3
View File
@@ -0,0 +1,3 @@
<script>
window.global = window;
</script>
+9
View File
@@ -0,0 +1,9 @@
export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
}