Документация компонента
Описывает компонент по реальному коду и местам использования.
---
name: component-docs
description: Use when a shared component needs documentation or a new variant.
---
Component docs
Document what the component does today, not what it should do.
Steps
- Read the component, its types, tests, and 3 real call sites.
- Write: purpose, props table, states, keyboard behavior.
- Add 2 pairs of "Do" and "Don't" taken from real usage.
- Add a "Do not use for" line.
- Mark anything you could not verify as
unknown.
Done when
- Every prop and variant in the doc exists in the code
- No invented props