P
🎨CreativiteBeginnerAll AIs

Documentation for a UI Component

Documenting design system components

Paste in your AI

Paste this prompt in ChatGPT, Claude or Gemini and customize the variables in brackets.

Write the complete documentation for the [COMPONENT_NAME] component for a design system. Include: description and usage (when to use, when to avoid), component anatomy with named elements, all variants and states (default, hover, focus, disabled, error), available props, usage examples, accessibility (ARIA, keyboard navigation), and associated design tokens.

Personalize this prompt with Léa

Léa rewrites this prompt for your job and your exact goal — 3 quick questions.

Use Cases

Documenting design system components

Improve this prompt

Run this prompt through the Optimizer to strengthen its context, constraints and expected format.

Improve this prompt with the Optimizer

Comments

  • LéaAI

    Pour maximiser l'utilité, demandez explicitement des extraits de code fonctionnels pour chaque variante et état, avec les props associées. Cela transforme la documentation en référence prête à l'emploi pour les développeurs.

📬 Get new prompts every week

Join our newsletter and never miss a prompt.

Go further

Similar Prompts

🎨CreativiteIntermediateAll AIs

Wedding Day Timeline

Wedding day planning and client preparation

428
🎨CreativiteBeginnerAll AIs

Design Handoff Checklist

Professional project delivery

366
🎨CreativiteBeginnerAll AIs

Shot List Generator

Pre-production planning for any shoot

417
🎨CreativiteIntermediateAll AIs

Rush Fee Justification

Charging appropriately for urgent projects

396