Layout & Navigation@rankbook-internal/ui

Card

Surface container with default, muted, and interactive variants plus sm/default sizes.

import { Card, CardHeader, CardTitle, CardDescription, CardAction, CardContent, CardFooter } from '@rankbook-internal/ui';
Card Variants & Sizes
Default, muted, interactive, and compact sm cards.
Default Card
Standard elevated surface
Active

Crisp 1px border with subtle specular edge in dark mode.

Muted Card
Recessed secondary container

Useful for summary callouts or nested metadata blocks.

Interactive Card
Hover to preview elevation

Designed for clickable course, batch, and lead cards.

Compact Card (size="sm")
Tighter padding and gaps
24 students ยท 92% attendance
Dynamic Section Combinations
Header, Body, Footer, and CardSeparator adapt vertical spacing automatically.
Bordered Header & Footer
Content automatically gets top & bottom breathing room

No manual pt-6 or pb-4 needed on CardContent when CardHeader has border-b.

Inset Separators
Using CardSeparator between sections

CardSeparator automatically separates sections with balanced spacing.

Updated just now

Body-only card: symmetric vertical and horizontal padding.

Header-only Card
Bottom padding automatically matches top padding.