Last active
March 13, 2024 17:01
-
-
Save alonbalbuena/cc90e27226e233ceda990d8708ba951e to your computer and use it in GitHub Desktop.
Webstorm live template to generate a storybook story with a Vue component
This file contains hidden or 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
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