Card

Cards are containers for grouping related content and actions.

Import

import { Card } from "@gumtree/ui/Card";

Props

PropTypeDefaultDescription
titlestring-Card title displayed in the header
borderedbooleanfalseAdd a border to the card
actionsComponentChildren-Action buttons rendered in the card footer
childrenComponentChildren-Card body content

Examples

Basic Card

A simple card with a title and body content.

Card Title

This is the card body content.

<Card title="Card Title">
  <p>This is the card body content.</p>
</Card>

Bordered Card

Cards with a visible border.

Bordered

This card has a border.

<Card title="Bordered" bordered>
  <p>This card has a border.</p>
</Card>

Card with Actions

Cards can include action buttons in the footer.

Actions

Card with an action button.

<Card title="Actions" actions={<Button variant="primary">Action</Button>}>
  <p>Card with an action button.</p>
</Card>