saturation/uisaturation/ui
DocsComponentsBlocksPagesEmails
GitHub

Sections

IntroductionComponentsInstallationMCPThemingDesign

Components

Components

General

AvatarBadgeButtonKbdProgressSeparatorSkeletonSpin ResolveSpinnerSync ButtonTypography

Forms & Inputs

Address LookupCalendar PickerCheckboxComboboxDate PickerEmoji PickerFavicon SearchFieldInputInput GroupInput OTPRadio GroupSelectSliderSwitchTextareaToggleToggle Group

Data Display

AccordionAlertCardChartComparison SliderCredit CardData TableEmptyItemSaturation Credit CardTableTree

Navigation

BreadcrumbCommandMenubarNavigation MenuPaginationTabs

Overlays

CollapsibleContext MenuDialogDropdown MenuSheet

Layout

Button GroupFont ProviderWizard Split Layout

Feedback

Sonner

Animation & Effects

Animated GroupAnimated ListAnimated NumberBeamBlur FadeBorder TrailGlow EffectLiquid MetalLoading StateParallaxPixelProgressive BlurRippleSpotlightText EffectText Shimmer

Productivity

Agent ChatAI Chat InputCoding AgentFiltersFull CalendarKanbanNovel Editor
Docs/Components/Card

Card

A flexible container component for displaying content in a structured format.

Loading...

Installation

pnpm dlx shadcn@latest add @saturation-ui/card

Tailwind v4 — Source Scanning

The public shadcn registry installs component source into your project. If Tailwind v4 isn't scanning your components directory, add this to your CSS entry file:

@source "../components";

This ensures all utility classes in CVA variants and data attribute selectors are included in your build.

Usage

import {
  Card,
  CardContent,
  CardDescription,
  CardFooter,
  CardHeader,
  CardTitle,
} from "@/components/ui/card"
<Card>
  <CardHeader>
    <CardTitle>Card Title</CardTitle>
    <CardDescription>Card Description</CardDescription>
  </CardHeader>
  <CardContent>
    <p>Card Content</p>
  </CardContent>
  <CardFooter>
    <p>Card Footer</p>
  </CardFooter>
</Card>

Examples

With Header

Loading...
Use CardHeader with CardTitle to add a header to your card.

With Footer

Loading...
Use CardFooter to add action buttons or additional information at the bottom of the card.

With Action

Loading...
Use CardAction to add an action button in the header area.

With Description

Loading...
Use CardDescription to add supporting text below the title.

Project Card

Sypher Studios

Edited 6 months ago

A practical example showing how to create a project card with a gradient background and metadata.

Semantic Heading

Loading...
Use `asChild` on CardTitle or CardDescription to render as a semantic element (h2/h3/p) for SEO without duplicating styles.

API Reference

PropTypeDefaultDescription
classNamestring—Additional CSS classes.
asChildboolean—On CardTitle and CardDescription, renders the child element (e.g. an h2/h3) with merged props instead of a div. Defaults to false.
PreviousCalendar PickerNextChart

On This Page

  • Installation
  • Usage
  • Examples
  • With Header
  • With Footer
  • With Action
  • With Description
  • Project Card
  • Semantic Heading
  • API Reference
Scene 12A
Interior
Coffee Shop - Dialogue Sequence
2 Pages | 1/8 Page
Est. 3 hours

Lead actors arrive at coffee shop. Discussion about the case.

Notifications
You have 3 unread messages.

Check your inbox for the latest updates.

Confirm Action
Are you sure you want to proceed?

This action cannot be undone.

Settings
Manage your account settings.
Emailuser@example.com
RoleAdmin
Create Project
Set up a new project to organize your work. You can change these settings at any time.

How it works

Renders as semantic HTML for SEO and AI crawlers.

Use asChild when the card is a content item in a listing and the title should participate in the heading hierarchy.