new-component | Skill Performance & Reviews | TopRankSkills

TopRank Skills

Home / Skills / tools / new-component

new-component

maintained by longbridge

star 9.9k account_tree 438 verified_user MIT License
bolt View GitHub

name: new-component description: Create new GPUI components. Use when building components, writing UI elements, or creating new component implementations.

Instructions

When creating new GPUI components:

  1. Follow existing patterns: Base implementation on components in crates/ui/src (examples: Button, Select)
  2. Style consistency: Follow existing component styles and Shadcn UI patterns
  3. Component type decision:
    • Use stateless elements for simple components (like Button)
    • Use stateful elements for complex components with data (like Select and SelectState)
  4. API consistency: Maintain the same API style as other elements
  5. Documentation: Create component documentation
  6. Stories: Write component stories in the story folder

Component Types

  • Stateless: Pure presentation components without internal state
  • Stateful: Components that manage their own state and data

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!

Skill Details

GitHub Stars 9.9k
GitHub Forks 438
Created Jan 2026
Last Updated 8个月前
tools tools mobile

Related Skills

dev-client
chevron_right
deployment
chevron_right
tailwind-setup
chevron_right
building-ui
chevron_right
devup-ui
chevron_right

Build your own?

Join 12,000+ developers contributing to the Claude ecosystem.