status · @awesome-ds/react
Card
Surface container for grouped content.
State matrix
idle
Anatomy
- grouped surface
- optional title
- body content
Keyboard contract
The surface itself is static; interactive descendants retain independent focus targets.
Screen-reader contract
Semantic descendants define structure; the entire card is not falsely announced as a button.
Content rules
- Keep one clear subject per card.
- Avoid competing nested calls to action.
Public API
| Prop | Type | required | Description |
|---|---|---|---|
title | string | — | Card heading |
children | ReactNode | required | Grouped content |
Adaptation contracts
- RTL
- Align status copy to inline-start and keep number/value semantics locale aware.
- High contrast
- Expose status with text, shape, or system color rather than authored color alone.
- Reduced motion
- Stop looping indicators where possible and retain a textual status.
Verification IDs
Live
Live
Card title
Card body content.Copyable example
import { Card } from "@awesome-ds/react";
<Card title="Title">Body</Card>