{ "Storybook stories module for React component": { "scope": "typescriptreact", "prefix": "sbmodule", "body": [ "import type { ComponentMeta, ComponentStory } from '@storybook/react';", "import React from 'react';", "", "import $1 from './$1';", "", "export default {", "\ttitle: '$2',", "\tcomponent: $1,", "} as ComponentMeta;", "", "export const Example: ComponentStory = (args) => <$1 {...args} />;", ] }, "Storybook meta": { "scope": "typescriptreact", "prefix": "sbmeta", "body": [ "export default {", "\ttitle: '$1',", "\tcomponent: $2,", "} as ComponentMeta;" ] }, "Storybook story": { "scope": "typescriptreact", "prefix": "sbstory", "body": [ "export const $1: ComponentStory = (args) => <$2 {...args} />;" ] } }