Skip to content

Commit

Permalink
[FSK-18]: Configure Storybooks (#7)
Browse files Browse the repository at this point in the history
This PR adds storybook configuration.

Co-authored-by: Alireza Safaierad <frontendmonster@gmail.com>
  • Loading branch information
AmirabbasJ and ASafaeirad committed Sep 12, 2022
1 parent 62564be commit e2cdbc2
Show file tree
Hide file tree
Showing 9 changed files with 39,096 additions and 8,410 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
save-exact=true
update-notifier=false
legacy-peer-deps=true
17 changes: 17 additions & 0 deletions .storybook/main.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/** @type { import('StorybookConfig') } */
module.exports = {
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-interactions',
'@storybook/addon-a11y',
],
framework: '@storybook/react',
core: {
builder: '@storybook/builder-vite',
},
features: {
storyStoreV7: true,
},
};
3 changes: 3 additions & 0 deletions .storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<script>
window.global = window;
</script>
9 changes: 9 additions & 0 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export const parameters = {
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
};
1 change: 1 addition & 0 deletions configs/cspell/charity.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
fullstacksjs
tanstack
vite

0 comments on commit e2cdbc2

Please sign in to comment.