Data display
Card
Plain surface for grouping content.
import { Card } from "datui";Playground
Card content
<Card variant="tint">Card content</Card>Examples
Variants
tint
shadow
outline
outline-tint
plain
Accessibility
- A generic
<div>; useasChildto render a semantic element such as<li>or a link.
API
Card
Plain surface for grouping content.
| Prop | Type | Default | Description |
|---|---|---|---|
| asChild | boolean | — | Render the single child (e.g. `<li>` or a link) with card styles instead of a `<div>`. |
| className | string | — | |
| variant | "shadow" | "tint" | "outline" | "outline-tint" | "plain" | — |