Skip to content

Instantly share code, notes, and snippets.

@larizzatg
Last active March 8, 2021 21:26
Show Gist options
  • Save larizzatg/e7993e3132d1b8f6b4c1196bc69edbe7 to your computer and use it in GitHub Desktop.
Save larizzatg/e7993e3132d1b8f6b4c1196bc69edbe7 to your computer and use it in GitHub Desktop.
storybook v6 new story snippet
{
"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