Skip to content

Commit

Permalink
WIP update storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
BOUSSU Remi committed Apr 5, 2024
1 parent 6639fbc commit 9dd7efb
Show file tree
Hide file tree
Showing 4 changed files with 5,612 additions and 529 deletions.
5 changes: 4 additions & 1 deletion .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const path = require('path');

module.exports = {
const config = {
stories: [
'../packages/action/src/*.stories.@(ts|tsx|js)',
'../packages/alert/src/*.stories.@(ts|tsx|js)',
Expand Down Expand Up @@ -58,4 +58,7 @@ module.exports = {

return config;
},
framework: { name: '@storybook/react-vite' },
staticDirs: ['../storybook-public'],
};
export default config;
46 changes: 25 additions & 21 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,31 @@ import './storybook.css';

export const decorators = [];

export const parameters = {
actions: { argTypesRegex: '^on.*' },
info: {
header: false,
},
viewport: {
viewports: INITIAL_VIEWPORTS,
},
docs: {
inlineStories: false,
},
options: {
storySort: {
order: [
'Components high level',
'Components',
'Form elements',
'Structure',
'Pages',
'Components low level',
],
const preview = {
parameters: {
actions: { argTypesRegex: '^on.*' },
info: {
header: false,
},
viewport: {
viewports: INITIAL_VIEWPORTS,
},
docs: {
inlineStories: false,
},
options: {
storySort: {
order: [
'Components high level',
'Components',
'Form elements',
'Structure',
'Pages',
'Components low level',
],
},
},
},
};

export default preview;
Loading

0 comments on commit 9dd7efb

Please sign in to comment.