Skill

Composition Patterns
SkillReact composition that does not grow a boolean prop for every state.
Official Vercel skill. Compound components, slots, and the APIs that still make sense in a year.
spec·Apache-2.0·Updated this quarter·github.com/vercel-labs/agent-skills
Claude CodeCursorDesktop
Verificado
npx skills add vercel-labs/agent-skills/vercel-composition-patternsPor Vercel
Entrada
A component that is getting flags.
Saída
A composition that drops the flags.
vercel-composition-patterns.skill/invoke
Você diz
This Button has 11 booleans.
Ela devolve
Split into Button.Root + variants. Diff attached.
Caderno de prompts
Prompts para os quais esta skill foi feita.
Você diz
This Button has 11 booleans.
Ela devolve
Split into Button.Root + variants. Diff attached.
Você diz
How should the Field compose?
Ela devolve
Field, Label, Control, Error. No layout prop.
O que ela ensina
- 01Compound components
- 02Slots
- 03API shape
Outras skills para o ciclo
Discussão
Nenhum comentário ainda. Seja o primeiro leitor a contar como foi.
