Card

Displays a card with header, content, and footer.

Card Title

Card description with supporting text below.

This is the main content area of the card where you can place any content you need.

Installation

CLI

Install the component using the StarUI CLI:

star add card

Examples

Interactive Profile Cards

Profile cards with follow/unfollow functionality and status badges

JD

John Doe

Product Designer

online

Passionate about creating user-centered designs that solve real problems.

AS

Anna Smith

Frontend Developer

away

Full-stack developer with expertise in Python and modern web technologies.

Interactive Dashboard Stats

Dynamic stats cards with period selection and real-time updates

Dashboard Overview

Track your key metrics across different time periods

Total Revenue

from last period

Active Users

from last period

Conversion Rate

from last period

Interactive Form Card

Form with real-time validation and dynamic button states

Create Account

Enter your details below to create your account

Valid email

Already have an account? Sign in

Interactive Shopping Cart

Dynamic cart with add/remove items, total calculation, and checkout flow

Shopping Cart

💻

MacBook Pro 14"

Space Gray, 16GB RAM

$2,399

🎧

AirPods Pro (2nd gen)

with MagSafe Case

$249

🛍️

Your cart is empty

Add some items to get started

Subtotal:
Tax:
Total:

Interactive Notifications

Alert and notification cards with action handlers

Payment successful

Your payment has been processed successfully.

Action required

Please verify your email address to continue.

Product Cards

E-commerce product cards with color selection, favorites, and cart functionality

Shopping Cart

No items in cart

Total items: ((($titanium_qty + $blue_qty) + $white_qty) + $airpods_qty)
📱

iPhone 15 Pro

Natural Titanium, 128GB

★★★★★4.9 (1,234 reviews)
$999
$1,0999% OFF

Color:

🎧

AirPods Pro

2nd Generation with MagSafe

★★★★★4.8 (892 reviews)
$249Best Seller

✓ Active Noise Cancellation

✓ Spatial Audio

✓ 6hr battery + 24hr case

API Reference

Component Description
Card The main card container
CardHeader Contains the card title and description
CardTitle The main heading of the card
CardDescription Supporting text for the card title
CardContent The main content area of the card
CardFooter Contains actions and additional information