SuperAPI AI Directory

guidance-api-design

Frontend & websites

View repository

Updated 10-16 02:34

About this skill

Guidance API Design

You MUST review the relevant API design guidelines before designing or modifying component APIs.

When to Use This Skill

  • Designing properties and attributes for new components
  • Creating CSS custom properties for theming
  • Avoiding impossible states in component APIs
  • Choosing between properties, attributes, and slots
  • Designing custom events
  • Planning component composition patterns
  • Setting up package exports and dependencies

Stateless Components

When creating new components or features that may contain user state review the Stateless Components Guidelines.

Properties vs Attributes

When working with JavaScript properties and HTML attributes review the Properties & Attributes Guidelines.

Styles & CSS Custom Properties

When working with CSS, CSS Custom Properties or Design Tokens review the Styles & CSS Custom Properties Guidelines.

Component Composition

When creating a new API or determining API design of parent child relationships between components review the Component Composition Guidelines.

Slots

When working with user provided content or container-like components review the Slots Guidelines.

Custom Events

When creating new events or listening to existing event review the Custom Events Guidelines.

Component Registration

When creating new components or using components as dependencies review the Component Registration Guidelines.

Packaging & Exports

When creating a new component or package review the Packaging & Exports Guidelines.