Card

Displays a card with header, content, and footer.

Project Status

Track deployment progress across environments

Production is running v2.4.1 with zero errors in the last 24 hours. Staging has v2.5.0-rc1 queued for review.

Installation

CLI

Install the component using the StarUI CLI:

star add card

Examples

With Card Action

Dropdown menu auto-positioned in the header via CSS grid

Team Members

Manage access and permissions

3 active members with admin, editor, and viewer roles assigned.

With Dividers

Opt-in border-b and border-t classes for section dividers

Billing Summary

Current period usage

Pro Plan$29/mo
API Calls12,847
Storage4.2 GB
Total$29/mo

With Image

Media card with badge metadata and icon placeholder

FeaturedTutorial

Getting Started with StarUI

Learn to build accessible interfaces in under 10 minutes.

Heading Levels

CardTitle level prop for semantic HTML headings (h1-h6)

Page Title

level='h1' for standalone page cards

Use h1 for the primary card on a page, such as a dashboard hero or profile header.

Section Heading

level='h2' for section-level cards

Defaults to h3, suitable for most card grids.

Settings Card

Interactive card composing switches with border dividers

Notifications

Choose which notifications you receive

Receive alerts on your device

Product news and special offers

New features and changelog

Dashboard Stats

Period switcher with match() for value lookup and reactive stat cards [match(), data_text, .eq(), .if_()]

Analytics

Deployment performance by period

Revenue
New users
Growth

API Reference

Props

Prop Type Default Description
level Literal['h1', 'h2', 'h3', 'h4', 'h5', 'h6'] 'h3' HTML heading tag for CardTitle. Choose based on document outline
cls str '' Additional CSS classes (available on all subcomponents)
Component Description
Card Root container with background, border, shadow, and vertical gap
CardHeader Contains title, description, and optional action. Auto-detects CardAction to enable two-column grid layout
CardTitle Semantic heading element. Use level prop (h1-h6) to set the HTML tag. Defaults to h3
CardDescription Muted supporting text below the title
CardAction Auto-positioned in the top-right of CardHeader via CSS grid. No extra configuration needed
CardContent Main content area with horizontal padding
CardFooter Flex-layout action bar. Add border-t class for an opt-in top divider