Skip to content

Commit

Permalink
Adds another vue story using the docs.source.code convention. Removes…
Browse files Browse the repository at this point in the history
… the storybook addon source
  • Loading branch information
roblevintennis committed Sep 17, 2020
1 parent 9afc1bb commit e527424
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 0 additions & 1 deletion agnosticui-vue/.storybook/main.js
Expand Up @@ -6,7 +6,6 @@ module.exports = {
"addons": [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-storysource",
],
webpackFinal: async (config, { configType }) => {
// Stole this from: https://github.com/storybookjs/storybook/issues/6055#issuecomment-606870009
Expand Down
1 change: 0 additions & 1 deletion agnosticui-vue/package.json
Expand Up @@ -27,7 +27,6 @@
"@storybook/addon-essentials": "^6.0.19",
"@storybook/addon-links": "^6.0.19",
"@storybook/addon-storyshots": "^6.0.20",
"@storybook/addon-storysource": "^6.0.21",
"@storybook/vue": "^6.0.19",
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/vue": "^5.0.4",
Expand Down
7 changes: 7 additions & 0 deletions agnosticui-vue/src/stories/Button.stories.js
Expand Up @@ -59,6 +59,13 @@ Primary.args = {
label: 'Primary',
mode: 'primary',
};
Primary.parameters = {
docs: {
source: {
code: `<AgnosticButton mode="primary" label="Primary" />`
}
},
}

export const PrimaryBordered = Template.bind({});
PrimaryBordered.args = {
Expand Down

0 comments on commit e527424

Please sign in to comment.