-
-
Save larizzatg/e7993e3132d1b8f6b4c1196bc69edbe7 to your computer and use it in GitHub Desktop.
storybook v6 new story snippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"new storybook": { | |
"prefix": "ns", | |
"body": [ | |
"import ${1:component} from './${2:index}.vue';", | |
"", | |
"export default { title: '${3:Components}/${1:component}' };", | |
"", | |
"const Template = (args, { argTypes }) => ({", | |
" components: { ${1:component} },", | |
" props: Object.keys(argTypes),", | |
" template: `<${1:component} v-bind=\"\\$props\" v-on=\"\\$props\" />`", | |
"});", | |
"", | |
"export const Default = Template.bind({});" | |
], | |
"description": "new storybook file" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment