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

generate-component-story

为组件创建示例故事。在编写故事、创建示例或演示组件用法时使用。

person作者: jakexiaohubgithub

Instructions

When creating component stories:

  1. Follow existing patterns: Base stories on the styles found in crates/story/src/stories (examples: tabs_story.rs, group_box_story.rs, etc.)
  2. Use sections: Organize the story with section! calls for each major part
  3. Comprehensive coverage: Include all options, variants, and usage examples of the component

Examples

A typical story structure includes:

  • Basic usage examples
  • Different variants and states
  • Interactive examples
  • Edge cases and error states