mirror of
https://github.com/RocketChat/Rocket.Chat.git
synced 2025-12-27 22:40:49 +00:00
36 lines
853 B
Plaintext
36 lines
853 B
Plaintext
{
|
|
"Storybook stories module for React component": {
|
|
"scope": "typescriptreact",
|
|
"prefix": "sbmodule",
|
|
"body": [
|
|
"import type { Meta, StoryFn } from '@storybook/react';",
|
|
"",
|
|
"import $1 from './$1';",
|
|
"",
|
|
"export default {",
|
|
"\ttitle: '$2',",
|
|
"\tcomponent: $1,",
|
|
"} satisfies Meta<typeof $1>;",
|
|
"",
|
|
"export const Example: StoryFn<typeof $1> = (args) => <$1 {...args} />;",
|
|
]
|
|
},
|
|
"Storybook meta": {
|
|
"scope": "typescriptreact",
|
|
"prefix": "sbmeta",
|
|
"body": [
|
|
"export default {",
|
|
"\ttitle: '$1',",
|
|
"\tcomponent: $2,",
|
|
"} satisfies Meta<typeof $2>;"
|
|
]
|
|
},
|
|
"Storybook story": {
|
|
"scope": "typescriptreact",
|
|
"prefix": "sbstory",
|
|
"body": [
|
|
"export const $1: StoryFn<typeof $2> = (args) => <$2 {...args} />;"
|
|
]
|
|
}
|
|
}
|