docs/snippets/vue/your-component.3.js.mdx
```js
// YourComponent.stories.js
import YourComponent from './YourComponent.vue';
//π This default export determines where your story goes in the story list
export default {
/* π The title prop is optional.
* See https://storybook.js.org/docs/vue/configure/overview#configure-story-loading
* to learn how to generate automatic titles
*/
title: 'YourComponent',
component: YourComponent,
};
//π We create a βtemplateβ of how args map to rendering
const Template = (args) => ({
components: { YourComponent },
setup() {
//π The args will now be passed down to the template
return { args };
},
template: '<YourComponent v-bind="args"/>',
});
export const FirstStory = Template.bind({});
FirstStory.args = {
/* π The args you need here will depend on your component */
};
```