ui

Card

A content container for grouping related information. Built with Base UI and Tailwind CSS. Copy-paste ready.

Installation

Usage

Examples

With Border

Renders the card with an explicit border for clearer visual containment against various background colors.

With Border Separation

Adds dividing borders between the header, content, and footer sections for a more structured layout.

Makes the entire card a navigable link, useful for post, article, or resource cards in grid layouts.

With Dropdown Menu

Adds a Menu trigger in the card header for contextual actions like edit, share, or delete.

With Image

Includes a top image region above the card header for media-rich content or product cards.

Image Zoom Hover

The card image scales up on hover via a CSS transform, creating a subtle zoom that draws focus to the visual.

Image Shadow Fade

A gradient overlay fades from transparent to the card background over the image, making overlaid title text more readable.

Stacked Depth

Renders three offset card layers with slight shadows to visually suggest a stack of items or a deck of content.

Login Form Card

A full login form contained within a card, including email, password fields, and a submit button.

Expandable Content

A card that expands in-place to reveal additional content, toggled by a "Show more" button at the bottom.

With Overflow Menu

Places a three-dot overflow icon button in the card header for secondary actions that don't warrant dedicated buttons.

With Header Actions

Adds a Badge and action buttons in the card header row, a common pattern for dashboard widget titles.

Combines a leading icon, a title, and a trailing "View" link in the card header for resource or feature entry points.

Pairs a category label with a navigation link in the header, useful for classification-style cards that need external navigation.

Repository Cards

A list of GitHub-style repository cards each showing the name, description, language badge with color dot, star count, and fork count.

Settings Card

A card split into a vertical sidebar nav and a content panel — clicking a nav item swaps the description panel without leaving the card.

Pricing Plan

A highlighted pricing plan card with a "Most Popular" badge, monthly price, feature checklist with check icons, and a primary CTA button.

Event Card

An event detail card with date, time, location, and attendee count displayed in a meta list, plus a "Reserve a Spot" button and remaining-spots warning.

Stats Dashboard

A 2×2 grid of metric tiles each showing a label, large value, and a trend indicator with up/down icon and percentage delta versus last month.