Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

Card

Static container extracted from the mockup’s .card and .panel. Card supplies the border, padding, and elevation. CardHeader and CardContent supply the layout inside.

Radius is 8px (rounded-lg), not the mockup’s 14px, because the system caps control and surface radii at 8px. The only elevation is shadow-sm: one step above the page.

React Cardlive
import { Card, CardHeader, CardContent } from "@/components/ui/card";
<Card>
<CardHeader title="Account overview">
<span className="text-xs text-muted">This month</span>
</CardHeader>
<CardContent>
<p>Hadir 182, warning 9, info 4.</p>
</CardContent>
</Card>
Terminal window
npx @glaceon/cli add card --framework react # or svelte, solid

The mockup ships two containers with the same border and padding, differing only in fill.

Prop value Background Mockup source
surface="surface" --surface .card
surface="surface-2" --surface-2 .panel

Card

Prop Type Default Description
surface "surface" | "surface-2" "surface" Background fill.
class / className string undefined Extra classes, appended last.

CardHeader

Prop Type Default Description
title string undefined Renders as an <h3> at the mockup’s .card h3 size.
class / className string undefined Extra classes, appended last.

CardContent

Prop Type Default Description
class / className string undefined Extra classes, appended last.