Storybook Scaffolder Workflow (v2)
- Get component path.
- Generate
.stories.tsxfile from template. - Prepend this line to the top of the generated file:
import 'src/styles/design-tokens.css'; - Report success.
生成一个包含M3设计令牌导入和交互变体故事的Storybook故事文件(*.stories.tsx)。在为开发和质量保证测试记录React组件时使用。
.stories.tsx file from template.import 'src/styles/design-tokens.css';