GitHub

Card

A flexible container for grouping related content and actions

Login to your account
Enter your email and check your inbox

Installation

Usage

Title and Description

You can use <CardHeader /> in two ways:

Using props

You can pass title and description props directly to <CardHeader />. In this case, you don't need to use <CardTitle /> and <CardDescription /> components.

Using components

Alternatively, you can use <CardTitle /> and <CardDescription /> as children for more control.

Examples

Product card

A product card with image, title, description, price, and action buttons.

Living room Sofa
This sofa is perfect for modern tropical spaces, baroque inspired spaces.

$450

Icon card

A card with an icon at the top and title, description, and action button at the bottom.

Get 15% OFF
Minimum purchase of $100 required. Use code at checkout.
15OFF

Custom spacing

You can use the [--space:--spacing("value")] utility class to change the spacing of the card.

Login to your account
Enter your email and check your inbox

You can also use breakpoint utilities to change the spacing of the card at different screen sizes.

API Reference

Card

Root element of the card. Renders a div

CardMedia

Media container for the card. Renders a div

CardHeader

Header container for the card. Renders a div

CardTitle

Title element for the card. Renders a div

CardDescription

Description element for the card. Renders a div

CardAction

Action element for the card header. Renders a div

CardContent

Content container for the card. Renders a div

CardFooter

Footer container for the card. Renders a div