Homecomponentsstructural

Card

A versatile container for creating cards and sections.


Use Card to display content related to a single subject.

Inset

Use the inset property to add inset (padding) inside the card.

$100
$300
$400
$500

Border Color

Use the borderColor property to set the border color.

gray
blue
indigo
orange

Background Color

Use the backgroundColor property to set the background color.

gray
blue
indigo
orange

Eyebrow

Use the eyebrow property to add eyebrow content to the card.

Hello world!
gray
Hello world!
blue
Hello world!
indigo
Hello world!
orange

You can use custom elements in the eyebrow. All Text components can inherit their colors.

Nutritionist 2d ago
gray

Title

Use the title property to set card's title. By default, the title will be a level 4 heading.

Your Projects

View a summary of the projects your did.

You can provide your own Heading component to use instead of the default.

Nutritionist

1 hour consultation.

Subtitle

Use the subtitle property to set card's subtitle. By default, the subtitle will be a level 5 heading.

Your Projects

3 active, 2 archived
View a summary of the projects you did.

You can provide your own Heading component to use instead of the default.

Your Projects

3 active, 2 archived
View a summary of the projects you did.

Shadow

Use the elevation property to add shadows to the card.

Your Projects

View a summary of the projects you did.

Your Projects

View a summary of the projects you did.

Your Projects

View a summary of the projects you did.

Your Projects

View a summary of the projects you did.

Your Projects

View a summary of the projects you did.

Sections

Use the CardSection component to add sections to the card.

Logo Design

Pause or resume targeted messaging to your customers.

View and edit the message sent to your customers.

Section Spacing

Use the spacing property to add space between sections. By default, it is $300.

Logo Design

Pause or resume targeted messaging to your customers.

View and edit the message sent to your customers.

Section Title

Use the title property to set the title of the section. By default, the section title will be a level 5 heading.

Logo Design

Enable targeted messages
Pause or resume targeted messaging to your customers.

Message template
View and edit the message sent to your customers.

Section Icon

Use the icon property to set the icon of the section.

Logo Design

Enable targeted messages
Pause or resume targeted messaging to your customers.

Message template
View and edit the message sent to your customers.

API

Card

children
Required
The items to lay out in the card.
ReactNode

as
The element used for the root node.
ElementType<any>

inset
The space inside the card.

spacing
The space between the sections.

borderColor
The shade to use for the borders.
HueName

backgroundColor
The shade to use for the background.
HueName
white

eyebrow
Content to show in the eyebrow. It sets a foreground color that Text's could inherit.
ReactNode

title
The title of the card. Can be a string.
ReactNode

subtitle
The subtitle of the card. Can be a string.
ReactNode

elevation
The shadow of the card.
400
100
200
300
500

data
An object with the data keys and values.
DataAttributeMap

CardSection

children
Required
The content of the card section.
ReactNode

title
The title of the card section. Can be a string.
ReactNode

icon
The icon to display for the section.
IconComponent