Card

Surface container with optional header, content, and footer slots. Use for grouping related content, metrics, and form sections.

import{ Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter } from "@pepulux/ui"

Default — header + content + footer

Full card with title, description, body, and action footer.

Notification settings

Manage how you receive updates.

Choose which notifications you want to receive for activity in your account.

Content-only card

Skip CardHeader and CardFooter for minimal padded containers.

A plain card with no header or footer — useful for wrapping custom layout sections.

Stats / metric card

Common pattern for dashboard metric tiles.

Total revenue

$48,295

+12.4% this month

Active devotees

3,842

+5.7% this month

Card with header actions

Place additional controls inside CardHeader using flex layout.

Team members

Manage access and roles.

O

Olivia Rhye

Admin

P

Phoenix Baker

Editor

L

Lana Steiner

Viewer

3 of 10 seats used

Cards in a grid layout

Cards pair naturally with CSS Grid for dashboard panels and feature lists.

Payments

$12,400

This week

Donations

$5,200

This week

Sevas

284

This week

Props

PropTypeDefaultDescription
classNamestringAdditional CSS classes on the card root element
children*ReactNodeCard content — compose with sub-components below

Props

PropTypeDefaultDescription
CardHeaderdivTop section with bottom border. Contains CardTitle and CardDescription.
CardTitleh3Bold heading inside CardHeader
CardDescriptionpSubtle description text inside CardHeader
CardContentdivMain padded content area (p-5)
CardFooterdivBottom section, flex row, no top padding — for action buttons