From aed59dfd8461d8c1d456d301070a71f0f338bd55 Mon Sep 17 00:00:00 2001 From: gxxrxn Date: Fri, 4 Aug 2023 17:55:25 +0900 Subject: [PATCH] =?UTF-8?q?setting:=20vscode=20storybook=20=EC=8A=A4?= =?UTF-8?q?=EB=8B=88=ED=8E=AB=20=EC=9E=91=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/storybook.code-snippets | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .vscode/storybook.code-snippets diff --git a/.vscode/storybook.code-snippets b/.vscode/storybook.code-snippets new file mode 100644 index 00000000..2566f51a --- /dev/null +++ b/.vscode/storybook.code-snippets @@ -0,0 +1,24 @@ +{ + "create a story for react component": { + "scope": "typescript,typescriptreact", + "prefix": "!story", + "body": [ + "import { Meta, StoryObj } from '@storybook/react';", + "", + "const meta: Meta = {", + " title: 'Base/${1}',", + " component: ${1},", + " tags: ['autodocs'],", + "};", + "", + "export default meta;", + "", + "type Story = StoryObj;", + "", + "export const Default: Story = {", + " args: {$2},", + "};", + "" + ] + } +}