Fragments
App Card
A card layout for app sections with optional icon, header action, separator, and footer.
FormanceCustom component built for Formance products.
A card layout for app sections with optional icon, header action, and footer. Built on top of the Card, Button, and Typography atoms.
For empty states, see AppCardEmpty.
With footer#
Pass a CardFooter to the footer prop for informative or destructive callouts below the content.
With empty state#
Render AppCardEmpty as the content when there is no data — typical for list pages before the first record exists.
With data table#
Wrap a DataTable to scope a section's listing inside its own card with title and actions.
Grid aligned#
Set contentAlign to end when cards share a grid row. The content moves to the bottom of each card, so the actions stay on one line when the descriptions have different lengths.
API reference#
AppCard#
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | - | The card title. |
description | string | - | The text below the title. |
appIcon | LucideIcon | - | The icon before the title. |
iconVariant | TButtonProps['variant'] | - | The colour of the icon. |
headerAction | ReactNode | - | The action at the right of the header. It is hidden when isEmpty is set. |
headerContent | ReactNode | - | More content next to the title, for example a badge. |
footer | ReactNode | - | The content below the card content, for example a CardFooter. |
isEmpty | boolean | false | Hides the header action. |
contentAlign | "start" | "end" | "start" | Where the content sits when the card is taller than its content. end moves the content and the footer to the bottom. |
className | string | - | More classes for the card. |