Card
Surface primitive for composing forms, stats, and showcase tiles
import { Card } from "@plexui/ui/components/Card";Examples
Overview
Project activity
Your team opened 12 issues and closed 8 pull requests over the last 7 days.
Login
Log in to your account
Enter your email below to log in to your account.
Create project
Create project
Deploy a new project in one-click with sensible defaults.
Where your functions and database will live.
Payment Method
Payment Method
All transactions are secure and encrypted
02
2024
Billing Address
The billing address associated with your payment method
No team members (empty state)
No team members
Invite your team to collaborate on this project.
How did you hear about us?
How did you hear about us?
Select the option that best describes how you heard about us.
Processing your request
Processing your request
Please wait while we process your request. Do not refresh the page.
Pricing
Starter
$0/ month
- 1 project
- Community support
- Plex UI core
Pro
$19/ month
- Unlimited projects
- Priority support
- All Figma kits
- Early components
Anatomy
<Card>
<Card.Header>
<Card.Title />
<Card.Description />
<Card.Action /> {/* optional top-right slot */}
</Card.Header>
<Card.Content />
<Card.Footer />
</Card>API
Card
| Prop | Type | Default | Description |
|---|---|---|---|
variant | "outline" | "solid" | "ghost" | "outline" | Visual variant |
size | "sm" | "md" | "lg" | "md" | Padding scale |
interactive | boolean | false | Adds hover and focus affordances. Automatic when href is set. |
href | string | — | Renders the Card as a link via the configured LinkComponent. |
external | boolean | auto-detected | Forces target="_blank" and rel="noopener noreferrer" when href is set. |
as | ComponentType | "a" | — | Overrides the link component (e.g. next/link). |
className | string | — | Applied to the root element |
All other <div> or <a> attributes are forwarded to the root.
Compound parts
| Part | Element | Purpose |
|---|---|---|
Card.Header | <div> | Title + description + optional action |
Card.Title | <h3> | Card heading |
Card.Description | <p> | Subtitle / explanation |
Card.Content | <div> | Primary body region |
Card.Footer | <div> | Trailing actions row |
Card.Action | <div> | Absolute top-right slot inside Card.Header |