generate-component-story

Create UI component stories with section-based layouts and usage examples.

12.5k|757|Updated Jun 13, 2024
One-click install
npx skills add https://github.com/longbridge/gpui-component --skill generate-component-story-longbridge
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generate-component-story
Source: https://github.com/longbridge/gpui-component/tree/main/.claude/skills/generate-component-story
Command: npx skills add https://github.com/longbridge/gpui-component --skill generate-component-story-longbridge

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Component stories help designers and developers visualize how UI components behave across states and usages, enabling rapid communication and alignment.

Core Features & Use Cases

  • Provides runnable story templates based on existing storytelling patterns.
  • Covers multiple variants, states, and edge cases to showcase robust usage.
  • Useful for design reviews, tutorials, documentation, and onboarding of new engineers.

Quick Start

Create a story showing the Button component's primary and secondary variants in a simple dashboard layout.

Frequently Asked Questions about generate-component-story

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate component stories to document UI design system variations?

Generate component stories by creating runnable templates that showcase UI component usage patterns across basic to advanced variants. These story examples organize sections with structured calls to cover multiple states and edge cases for design system documentation.

What is the best way to showcase UI component states and edge cases for developer onboarding?

Showcase UI component states by creating story examples that cover multiple variants and edge cases. These templates adhere to established storytelling patterns, providing hands-on tutorials that help new engineers visualize component behavior across different usages.

Can I use component stories to demonstrate interactive examples across multiple component families?

Yes, component stories support multiple component families by generating interactive and edge-case examples. The templates organize sections systematically, covering basic to advanced variants to demonstrate robust usage patterns across your design system.

Does this approach to component storytelling work for design reviews and tutorials?

Component storytelling works effectively for design reviews, tutorials, documentation, and onboarding. By providing runnable story templates based on established patterns, it helps designers and developers visualize how UI components behave across states, enabling rapid communication and alignment.

How do I structure component stories to cover basic and advanced variants systematically?

Structure component stories using section! calls to organize content systematically. This approach covers basic to advanced variants, including interactive and edge-case examples, ensuring comprehensive documentation of component behavior across all usage patterns.