feat: add custom snippets

This commit is contained in:
Devin Haska 2025-06-30 19:05:11 -07:00
parent b9866fe801
commit 1f4e5f2f0c
Signed by: wonderfulfrog
SSH key fingerprint: SHA256:ejOGyH9064rJiikox4ykOHLeuUg1f9l8wmJxs+MzNw0
3 changed files with 44 additions and 5 deletions

25
snippets/typescript.json Normal file
View file

@ -0,0 +1,25 @@
{
"Storybook Component Template": {
"prefix": "tssbc",
"body": [
"import type { Meta, StoryObj } from \"@storybook/react\";",
"",
"import { $1 } from \"./$1\";",
"",
"const meta = {",
" title: \"$1\",",
" component: $1,",
" args: {",
" $2",
" },",
" tags: [\"autodocs\"],",
"} satisfies Meta<typeof $1>;",
"",
"export default meta",
"type Story = StoryObj<typeof meta>;",
"",
"export const Default: Story = {}"
],
"description": "Create a Storybook template for a component"
}
}