Состояния UI
Показывает все состояния компонента, прежде чем считать его готовым.
---
name: ui-states
description: Use when a component looks finished but only the happy path has been tested.
---
UI states
Make every state visible.
Steps
- Make a temporary page or story for the component.
- Render these states: default, hover, focus, disabled, loading, empty, error, success.
- Add stress cases: very long text, 0 items, 1000 items, 320 px width.
- Fix what breaks.
- Keep the page as a story or delete it. Do not leave it in production routes.
Done when
- Every state renders without overflow or layout jumps
- Error and loading states tell the user what to do next