Components

Table of Content

Table of Content

Table of Content

Card

A Card is a flexible content container that groups related information and actions into a distinct, digestible unit. It serves as the primary building block for dashboards, lists, and detail views.

Anatomy & Slots:

Our Card component is built as a "Slot-Based" container to maximize flexibility while maintaining consistent padding and structure.

A. The Header Area

  • Content: Typically contains an Avatar, Title (Heading Label), and Subtitle (Body Label).

  • Actions: Supports a top-right action slot, often used for a "Close" (X) button, "More Options" (...) menu, or a status badge.

B. The Body Slot

  • Definition: A flexible area designed to hold any component.

  • Usage: Can be swapped to contain data visualizations, text blocks, form inputs, or nested lists.

  • Placeholder: Labeled as [swap slot] in the master component to indicate its dynamic nature.

  • Definition: A pinned area at the bottom of the card reserved for primary actions.

  • Usage: Contains high-emphasis buttons (e.g., "Done," "View Details") that apply to the entire card content.

  • Visuals: Often separated by a subtle divider or distinct padding to anchor the action.

Visual Properties:

  • Container: Uses Surface-Primary background with a Border-Neutral-Subtle stroke (1px).

  • Radius: Uses Radius-L (20px) to create a distinct, modern silhouette that separates it from the background canvas.

  • Elevation: Supports a hover state with Shadow-S to indicate interactivity if the entire card is clickable.

Create a free website with Framer, the website builder loved by startups, designers and agencies.