Patterns
Card
The one surface: hairline border, no shadow at rest.
Static card
For content that is read.
Body text.
Interactive card
Lifts on hover; the whole card is the target.
"use client";
import { Card, CardDescription, CardHeader, CardTitle } from "@waveinno/ui";
export default function CardExample() {
return (
<div className="grid gap-3 sm:grid-cols-2">
<Card>
<CardHeader>
<div>
<CardTitle>Static card</CardTitle>
<CardDescription>For content that is read.</CardDescription>
</div>
</CardHeader>
<p className="text-sm text-body">Body text.</p>
</Card>
<Card interactive>
<CardTitle>Interactive card</CardTitle>
<CardDescription>Lifts on hover; the whole card is the target.</CardDescription>
</Card>
</div>
);
}Examples#
Each one on its own: copy its code into your app, or copy it to Figma and paste it on the canvas as layers.
Basic
The one surface: a hairline border and no shadow at rest.
Gulshan Car Park
312 spaces · open 24 hours
Levels B1 to B3. Monthly passes and hourly parking, paid at the gate or by bKash.
"use client";
import { Card, CardDescription, CardHeader, CardTitle } from "@waveinno/ui";
export default function CardBasicExample() {
return (
<Card className="w-full max-w-sm">
<CardHeader>
<div>
<CardTitle>Gulshan Car Park</CardTitle>
<CardDescription>312 spaces · open 24 hours</CardDescription>
</div>
</CardHeader>
<p className="text-sm text-body">Levels B1 to B3. Monthly passes and hourly parking, paid at the gate or by bKash.</p>
</Card>
);
}Header, content and footer
A title with its status, the content, and a footer for the decision.
Payout
Next transfer on Sunday
৳1,24,500
"use client";
import {
Button,
Card,
CardContent,
CardDescription,
CardFooter,
CardHeader,
CardTitle,
StatusBadge,
} from "@waveinno/ui";
export default function CardHeaderActionsExample() {
return (
<Card className="w-full max-w-sm">
<CardHeader>
<div>
<CardTitle>Payout</CardTitle>
<CardDescription>Next transfer on Sunday</CardDescription>
</div>
<StatusBadge label="Scheduled" tone="info" />
</CardHeader>
<CardContent>
<p className="disp text-[28px] font-bold leading-9 text-text">৳1,24,500</p>
</CardContent>
<CardFooter className="gap-2">
<Button size="sm" variant="primary">
Pay out now
</Button>
<Button size="sm" variant="ghost">
Details
</Button>
</CardFooter>
</Card>
);
}Interactive
The whole card is a link: it lifts on hover and takes focus.
Banani Trade Centre
86% full · 41 spaces free
"use client";
import { Card, CardDescription, CardTitle } from "@waveinno/ui";
import { ArrowUpRight } from "lucide-react";
export default function CardInteractiveExample() {
return (
<Card interactive className="w-full max-w-sm">
<div className="flex items-start justify-between gap-3">
<div>
<CardTitle>Banani Trade Centre</CardTitle>
<CardDescription>86% full · 41 spaces free</CardDescription>
</div>
<ArrowUpRight className="size-4 text-muted" />
</div>
</Card>
);
}Feature
An icon tile, a title and a line: for feature grids and settings.
Number plate entry
Cameras read the plate and open the gate for pass holders.
"use client";
import { Card, CardDescription, CardTitle } from "@waveinno/ui";
import { KeyRound } from "lucide-react";
export default function CardFeatureExample() {
return (
<Card className="w-full max-w-sm">
<span className="grid size-10 place-items-center rounded-[11px] bg-[linear-gradient(135deg,var(--brand-1),var(--brand-2))] text-white shadow-[inset_0_1px_0_rgba(255,255,255,.3)]">
<KeyRound className="size-5" />
</span>
<CardTitle className="mt-4">Number plate entry</CardTitle>
<CardDescription>Cameras read the plate and open the gate for pass holders.</CardDescription>
</Card>
);
}Highlighted
A brand ring and a soft wash: the recommended plan, the default choice.
Team
Most popular৳53,900 once
Every developer at your company.
"use client";
import { Card, CardDescription, CardTitle, StatusBadge } from "@waveinno/ui";
export default function CardHighlightedExample() {
return (
<Card className="w-full max-w-sm border-primary/40 bg-[linear-gradient(170deg,var(--primary-subtle),transparent_60%)] ring-1 ring-primary/30">
<div className="flex items-center justify-between">
<CardTitle>Team</CardTitle>
<StatusBadge label="Most popular" tone="accent" />
</div>
<p className="disp mt-3 text-[28px] font-bold leading-9 text-text">
৳53,900 <span className="text-[13px] font-medium text-muted">once</span>
</p>
<CardDescription>Every developer at your company.</CardDescription>
</Card>
);
}Animated#
Motion that earns its place: free ones to copy now, and Pro ones whose code and Figma copy come with a Wavi Pro licence. They respect the visitor's reduced-motion setting.
Lift and glowFree
Rises on hover and a brand glow spreads beneath it.
Daily report
Cars in, cars out and takings, every evening at 9.
"use client";
import { Card, CardDescription, CardTitle } from "@waveinno/ui";
export default function CardLiftExample() {
return (
<Card className="w-full max-w-sm cursor-pointer transition-[transform,box-shadow,border-color] duration-300 ease-[cubic-bezier(.22,1,.36,1)] hover:-translate-y-1 hover:border-primary/40 hover:shadow-[0_22px_44px_-22px_color-mix(in_srgb,var(--brand-1)_60%,transparent)]">
<CardTitle>Daily report</CardTitle>
<CardDescription>Cars in, cars out and takings, every evening at 9.</CardDescription>
</Card>
);
}Spotlight Pro
A light follows the pointer over the card and along its edge.
Occupancy insights
Which floors fill first, hour by hour.
Move the pointer over the card: the light follows it, on the surface and on the edge.
This example's code comes with Wavi Pro
One payment for every Pro component, block and template, with every update.
3D tilt Pro
Tilts towards the pointer with a moving glare: for passes, plans and showcase cards.
Monthly pass
৳3,500
Gulshan 2 · Level B1 · Any time
DHAKA METRO-GA 12-3456
This example's code comes with Wavi Pro
One payment for every Pro component, block and template, with every update.
Import#
Everything comes from the package root. The example above uses:
import { Card, CardDescription, CardHeader, CardTitle } from "@waveinno/ui";Props#
Read from the source of this version, so they match the code exactly.
<Card>
src/components/ui/card.tsx| Prop | Type | Default | Description |
|---|---|---|---|
interactive | boolean | — |
Also takes HTMLAttributes<HTMLDivElement>.
<CardDescription>
src/components/ui/card.tsxAlso takes HTMLAttributes<HTMLParagraphElement> (passed through).
<CardHeader>
src/components/ui/card.tsxAlso takes HTMLAttributes<HTMLDivElement> (passed through).
<CardTitle>
src/components/ui/card.tsxAlso takes HTMLAttributes<HTMLHeadingElement> (passed through).
Install#
If the project does not have the package yet, add it, then follow the setup for Next.js or Vite once.
$ npm install @waveinno/ui