Card
Structured surface container with header, title, description, action, content, and footer slots.
Deploy preview
Ship atomic CSS without bundling a compiler plugin.
dist/styles.css is 34.1 kB uncompressed across all 51 modules.
Usage
import {
card,
cardContent,
cardDescription,
cardFooter,
cardHeader,
cardTitle,
} from "coatx/card";
export const SummaryCard = () => (
<div {...card()}>
<div {...cardHeader()}>
<h3 {...cardTitle()}>Release</h3>
<p {...cardDescription()}>Ready to deploy.</p>
</div>
<div {...cardContent()}>All checks passed.</div>
<div {...cardFooter()}>Updated just now</div>
</div>
);
Exports (coatx/card)
| Export | Description |
|---|---|
card(options?) |
Card surface container |
cardHeader(options?) |
Header grid (title, description, optional action) |
cardTitle(options?) |
Heading slot |
cardDescription(options?) |
Muted subtitle slot |
cardAction(options?) |
Top-right action slot |
cardContent(options?) |
Body content wrapper |
cardFooter(options?) |
Footer row |
cardStyles |
Compiled StyleX style map |