Card

Displays a card with header, content, and footer.

Default

Simple card with content.

html

Card Title

Card description goes here.

Card content with some details about this item that needs to be displayed to the user.

<div class="uc-card">
  <div class="uc-card-header">
    <h3 class="uc-text-lg uc-font-semibold">Card Title</h3>
    <p class="uc-text-sm uc-text-fg-disabled uc-mt-1.5">Card description.</p>
  </div>
  <div class="uc-card-body">
    <p class="uc-text-sm">Card content...</p>
  </div>
</div>

Card with distinct sections.

Create project

Deploy your new project in one-click.

Select

Stats Cards

Cards for displaying metrics.

Total Revenue

$45,231.89

+20.1% from last month

Subscriptions

+2,350

+180.1% from last month

Active Now

+573

+201 since last hour

Interactive

Hoverable clickable cards.

Desktop

macOS, Windows, Linux

Mobile

iOS, Android

Notification Card

Card as a notification list.

Notifications

You have 3 unread messages.

Your call has been confirmed.

1 hour ago

You have a new message!

2 hours ago

Your subscription is expiring soon!

5 hours ago

API Reference

All utility classes available for the Card component.

Class Type Description
uc-card Base Card container with border, rounded corners, and surface background
uc-card-header Base Card header section with padding
uc-card-body Base Card content/body section with padding
uc-p-6 Layout Standard padding for card content areas
uc-max-w-sm Size Constrains card width for form-style layouts
uc-max-w-md Size Medium constrained width for wider cards
uc-rounded-2xl Base Large border radius on the card container
uc-border uc-border-border-default Base Default border styling
uc-bg-neutrals-surface Base Surface background color
uc-hover:border-accents-blue Modifier Blue border on hover for interactive cards
uc-cursor-pointer Modifier Pointer cursor for clickable cards
uc-space-y-4 Layout Vertical spacing between card body elements

Accessibility

Keyboard and screen reader support.

Feature Details
Semantics Use article element for standalone content cards
Heading Card titles should use appropriate heading level for document structure
Interactive If entire card is clickable, use a single link/button — avoid nested interactives
Images Card images need alt text; decorative images use alt=""