diff --git a/docs/snippets/vue/button-story-with-args.js.mdx b/docs/snippets/vue/button-story-with-args.js.mdx new file mode 100644 index 00000000000..3a8817f8cec --- /dev/null +++ b/docs/snippets/vue/button-story-with-args.js.mdx @@ -0,0 +1,21 @@ +```js +// Button.stories.js + +import Button from './Button'; + +export default { title: 'Components/Button' }; + +// We create a “template” of how args map to rendering +const Template = (args, { argTypes }) => ({ + components: { Button }, + props: Object.keys(argTypes), + template: '