Generate Component Story

Create comprehensive story examples for UI components

✨ The solution you've been looking for

Verified
Tested and verified by our team
9771 Stars

Create story examples for components. Use when writing stories, creating examples, or demonstrating component usage.

component-stories ui-documentation examples storybook gpui rust frontend testing
Repository

See It In Action

Interactive preview & real-world examples

Live Demo
Skill Demo Animation

AI Conversation Simulator

See how users interact with this skill

User Prompt

Create a story for a Button component that shows default, primary, and disabled states

Skill Processing

Analyzing request...

Agent Response

A complete Rust story file following existing patterns with section! calls and comprehensive examples

Quick Start (3 Steps)

Get up and running in minutes

1

Install

claude-code skill install generate-component-story

claude-code skill install generate-component-story
2

Config

3

First Trigger

@generate-component-story help

Commands

CommandDescriptionRequired Args
@generate-component-story basic-component-story-creationGenerate a complete story file for a new UI component with basic usage examplesNone
@generate-component-story interactive-story-examplesBuild interactive stories that demonstrate component behavior and state changesNone
@generate-component-story edge-case-documentationCreate stories that cover edge cases and error states for robust component testingNone

Typical Use Cases

Basic Component Story Creation

Generate a complete story file for a new UI component with basic usage examples

Interactive Story Examples

Build interactive stories that demonstrate component behavior and state changes

Edge Case Documentation

Create stories that cover edge cases and error states for robust component testing

Overview

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

What Users Are Saying

Real feedback from the community

Environment Matrix

Dependencies

Rust toolchain
GPUI framework

Framework Support

GPUI ✓ (recommended)

Context Window

Token Usage ~1K-3K tokens for typical component stories

Security & Privacy

Information

Author
longbridge
Updated
2026-01-30
Category
cms-platforms