Card

A content container with header, body and footer sections in four variants.

Production cluster

us-east-1 · 12 nodes

Operational

All services healthy. Last incident 42 days ago.

Import#

import { Card } from "astralis-ui";
// Card.Header, .Title, .Description, .Body, .Footer

Anatomy#

Card.Header takes an extra slot for trailing content (badges, menus); size on the root scales every section's padding through context.

Variants#

hoverable adds a lift on hover — pair it with clickable cards.

elevated

hoverable — try me

outline

hoverable — try me

filled

hoverable — try me

Props#

PropTypeDefaultDescription
variant"elevated" | "outline" | "filled" | "unstyled""elevated"Shadowed, bordered, tinted, or bare.
size"sm" | "md" | "lg""md"Padding density for all sections.
hoverablebooleanfalseHover elevation.

Card.Header additionally takes extra: ReactNode; Card.Title renders an h3 and Card.Description a p — both accept their native attributes.