返回 Skill 列表
extension
分类: 开发与工程无需 API Key

storybook-scaffolder

生成一个包含M3设计令牌导入和交互变体故事的Storybook故事文件(*.stories.tsx)。在为开发和质量保证测试记录React组件时使用。

person作者: jakexiaohubgithub

Storybook Scaffolder Workflow (v2)

  1. Get component path.
  2. Generate .stories.tsx file from template.
  3. Prepend this line to the top of the generated file: import 'src/styles/design-tokens.css';
  4. Report success.