Skip to content

Instantly share code, notes, and snippets.

@alonbalbuena
Last active March 13, 2024 17:01
Show Gist options
  • Save alonbalbuena/cc90e27226e233ceda990d8708ba951e to your computer and use it in GitHub Desktop.
Save alonbalbuena/cc90e27226e233ceda990d8708ba951e to your computer and use it in GitHub Desktop.
Webstorm live template to generate a storybook story with a Vue component
import type {Meta, StoryObj} from "@storybook/vue3";
import ${NAME} from './${NAME}.vue';
const meta: Meta<typeof ${NAME}> = {
title: 'Components/$TypeOfComponent$/${NAME}',
component: ${NAME},
tags: ['autodocs']
};
export default meta;
type Story = StoryObj<typeof ${NAME}>;
export const Default: Story = {
#[[$END$]]#
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment