Card

A bordered surface for content and actions, with media, interactive and background-motion variants.

v1.1.1·Updated Jul 11, 2026 · 14:00
A surface for grouping

A card is the simplest container: a bordered surface that gathers related content and its actions into one block. On a dark field it reads as a faint panel lifted a step off the page, held together by a hairline rather than a shadow. Give it media, make it clickable, or let a little motion live behind the content.

Live demo
01 · Media
Image, video and audio. Media sits flush; the body stays padded.
TRAVEL
Harbor at dawn

Lisbon, PT. A resting card: flush media, a title band and a hairline footer.

0:57
3:24
Optimistic UI, end to end

How rendering the result first makes an interface feel instant.

Ember, Slow Return

Northbound · 3:48
02 · Interactive
Cards that respond to intent: lift, tilt, flip.
Export the kit

The whole card lifts on hover and takes a focus ring, so it reads as one target.

Optimistic
4291 · 0072 · 5580
MemberSubin Wayanad
Since2026
03 · Background movement
Motion lives behind the content, never on it.
Hover me
Cursor spotlight
An ember glow tracks the pointer, lighting the surface where you look.
Border beam
A light runs the edge
A single conic sweep circles the border to draw the eye.
04 · Data & finance
A payment card, KPI stats and asset tiles. The same parts, recombined in ember.
Optimistic
4291••••••••2579
Card holderSubin Wayanad
Expires12 / 28
Balance
24,592
vs last week3.5%
My balance
Wallet overview and spending
48,920.32 1.5%
Expenses
8,120
vs last week1.2%
SSOLSolana
142.304.7%
BBTCBitcoin
90,9591.6%
05 · Lending & offers
Loans, deals and a peer-to-peer listing, built from our Badge, Button, Progress and Avatar.
Personal loanActive
12,400 outstanding
62% repaid7,600 of 20,000
Next payment
420 · Jul 12
Cashback dealLimited
5% back on groceries

Auto-applied at checkout with any Optimistic card. Ends in 6 days.

Up to 200 / month
Pre-approved3 days left
25,000 up to
APR from
8.9%
Term
36 mo
Monthly
792
NR Nova RetailA+ rated
Amount
50,000
APR
11.4%
Term
24 mo
74% funded
ILRKMO+12 lenders
06 · People & progress
Profiles, goals and activity, built from avatars, rings and bars.
Profile
SW
Subin Wayanad
Design Manager
11 56 12
Team goal
Ship the design system
SLANKI
68% complete17 of 25 tasks
Recent activity
Transfer to Yanuel Erik12 Jan 2026-30.00
Shopping at Okemart11 Jan 2026-16.25
Receive from Yuliano Vidi07 Jan 2026+10.00
07 · Company profile
A business profile with a logo, meta line, tag row and a metric grid, plus a grouped stat card.
GreenLeaf Financial
AAA
Chennai, TNOil & Gas FinanceEst. 2014
ConsumerOil & GasChemicalPaint
Revenue
115 Cr
EBITDA
49.5 Cr
Net worth
20.3 Cr
PAT
8.4 Cr
Debt
12 Cr
Valuation
340 Cr
GreenLeaf Financial
AAA
Chennai, TNOil & Gas FinanceEst. 2014
ConsumerOil & GasChemicalPaint
Revenue
115 Cr
EBITDA
49.5 Cr
Net worth
20.3 Cr
PAT
8.4 Cr
Debt
12 Cr
Valuation
340 Cr
Available for you
Value of loans
329 Cr
No. of loans
1234
In discussion with others
Value of loans
182 Cr
No. of loans
640
08 · Marketplace listings
Deal-flow cards with a CRISIL rating, revenue and key figures. The last one spans the full row.
Pro Property Maintenance
CRISILA+
Chennai, TNOil & GasEst. 2015
LLPEV startup
Revenue
51.5 Cr
EBITDA
5.9 Cr
PAT
4.8 Cr
Net worth
5 Cr
Incorporated 23 Jun 2015
Pro Property Maintenance
CRISILAAA
Chennai, TNOil & GasEst. 2015
LLPEV startup
Revenue
115 Cr
EBITDA
5.9 Cr
PAT
4.8 Cr
Net worth
5 Cr
Incorporated 23 Jun 2015
Pro Property Maintenance
CRISILAAA
Chennai, TNOil & GasEst. 2015
LLPEV startup
Revenue
88 Cr
EBITDA
5.9 Cr
PAT
4.8 Cr
Net worth
5 Cr
Incorporated 23 Jun 2015
Pro Property Maintenance
Chennai, TNOil & GasChemical & PaintEst. 2015
LLPEV startup
Revenue
115 Cr
EBITDA
5.9 Cr
PAT
4.8 Cr
Net worth
5 Cr
CRISILAAA
Kinds
KindDetail
MediaImage, video and audio cards. The <CardMedia> band runs edge to edge; a play control, progress and waveform live on top of it.
InteractiveThe interactive prop lifts the whole card and adds a focus ring. Beyond it: a cursor-tracked 3D tilt and a click-to-flip card.
Background movementMotion behind the content, never on it: a drifting aurora, an ember spotlight that follows the cursor, a light running the border.
Data & financeA payment-card visual, KPI stat cards with a trend pill, an accent-filled balance card, and asset tiles with an inline sparkline.
Lending & offersLoan, deal and pre-approved-offer cards, plus a peer-to-peer market listing, built from Badge, Button, Progress and Avatar.
People & progressProfiles with a progress-ring avatar, a goal card with a progress bar and avatar stack, and an activity list.
Company & marketplaceA business profile with a logo, meta line, tag row and metric grid, a grouped stat card, and CRISIL-rated deal-flow listings.
Anatomy
PartDetail
SurfaceA raised panel with a 1px hairline border and 12px radius. The container, never the content.
MediaA flush band at an edge: image, video or audio. It owns its corners; the body stays padded.
Body20px inner padding holding the title, description and any content.
FooterAn actions row under a subtle hairline. Optional.
ElevationFlat by default. A soft shadow is reserved for cards that float or that you can click.
Code
tsx
import {
  Card, CardMedia, CardBody, CardTitle, CardDescription, CardFooter,
} from "./ui/components/card/card";
import { Button } from "./ui/components/button/button";

// A media card with flush media and a padded body
<Card flush interactive>
  <CardMedia ratio="4/3">
    <img src="/harbor.jpg" alt="Harbor at dawn" />
  </CardMedia>
  <CardBody>
    <CardTitle>Harbor at dawn</CardTitle>
    <CardDescription>A resting card with a hairline footer.</CardDescription>
    <CardFooter>
      <span>4 min read</span>
      <Button variant="ghost" size="sm" style={{ marginLeft: "auto" }}>Share</Button>
    </CardFooter>
  </CardBody>
</Card>