You're viewing the Intent UI v2 documentation. Go to v3 documentation to see the latest updates.
Surfaces

Card

A flexible UI container that groups related content, actions, and media in a structured and visually appealing layout.

Basic

Top spots to hit in 2024, no cap!

Loading...

Installation

If you hit any issues, make sure you check out the installation guide here for more information.

Manual Installation

Anatomy

With Form

Sometimes, you may need a card with a form inside.

Loading...

Action

You can add actions to your card, which will be aligned to the right. This example demonstrates using the menu component, but you can use any component you prefer.

Loading...

With Table

When you place a table inside a card, The table gutter inherits the padding from its parent card to ensure visual consistency.

Loading...

For table docs, check out the Table docs.

Section Title

Sometimes, you may only need a card header without wrapping container itself. Of course, you need don't want the default padding, right? So I have prop called withoutPadding to help you out.

<CardHeader
  title="List Daemons"
  description="List of daemons to use in your sites."
/>

Adjust Padding

The padding for all sections of the card—header, content, and footer—is controlled by a CSS variable defined on the card’s parent container. To update the padding for the entire card, simply set the variable via a class on the parent like this:

<Card className='[--card-spacing:--spacing(2)'/>
Get premium blocksCreate stunning, professional-grade layouts that not only save time but also elevate the quality of your projects.