Skip to content

Commit

Permalink
docs: småjusteringer i storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
antidecaf committed Nov 5, 2024
1 parent 5982134 commit 2a5e79f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ function getAbsolutePath(value: string): any {

const config: StorybookConfig = {
stories: [
'../packages/**/*.stories.@(js|jsx|mjs|ts|tsx)',
'../packages/**/*.@(mdx)',
'../packages/**/*.stories.@(js|jsx|mjs|ts|tsx)',
],
addons: [
getAbsolutePath('@storybook/addon-links'),
Expand Down
6 changes: 6 additions & 0 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,15 @@ const preview: Preview = {
date: /Date$/i,
},
},
viewMode: 'docs',
docs: {
components,
},
options: {
storySort: {
method: 'alphabetical',
},
},
},
decorators: [
(Story, context) => {
Expand Down

0 comments on commit 2a5e79f

Please sign in to comment.