Skip to content

Commit

Permalink
Commit showing how to disable global autodocs and enabling them for t…
Browse files Browse the repository at this point in the history
…he card component.
  • Loading branch information
pyrello committed Dec 14, 2023
1 parent a4a1b19 commit 668cc52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .storybook/main.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const config = {
},

docs: {
autodocs: true
// autodocs: true
}
};

Expand Down
3 changes: 2 additions & 1 deletion src/components/card/Card.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default {
},
title: 'Components/Card',
component: UidsCard,
tags: ['autodocs'],
argTypes: {
// Props
headline_style: {
Expand Down Expand Up @@ -181,7 +182,7 @@ export default {
// More on component templates: https://storybook.js.org/docs/vue/writing-stories/introduction#using-args
const Template = (args) => ({
// Components used in your story `template` are defined in the `components` object
components: { UidsCard },
component: { UidsCard },
// The story's `args` need to be mapped into the template through the `setup()` method
setup() {
return { args }
Expand Down

0 comments on commit 668cc52

Please sign in to comment.