Logo

Getting Started

IntroductionInstallationQuick Start
Logo
DocumentationAPI ReferenceChangelog

Components

Card

Display content in organized, clickable cards with icons or images

Overview

The <Card> component creates visual containers for content that support text, icons, images, and links. Perfect for showcasing features, documentation links, or any grouped content.

Basic Usage

Getting Started

Complete guide to setting up your documentation site.

Layout Options

Vertical Layout (Default)

Vertical cards display icon/image at the top with content below:

Horizontal Layout

Compact layout with icon/image on the left:

Card Groups

Use <CardGroup> to organize multiple cards in a responsive grid:

CardGroup Props

cols
number

Number of columns in the grid layout.

Default: 2

Options: 1, 2, 3, 4

<CardGroup cols={3}>{/* Cards here */}</CardGroup>

With Icons

Cards with icons are great for feature showcases:

Fast Search

Instant search powered by FlexSearch.

Beautiful UI

Modern design with Chakra UI v3.

Type Safe

Full TypeScript support throughout.

With Images

Vertical Image Cards

Images display as full-width banners at the top:

Horizontal Image Cards

Images display as square thumbnails on the left:

Props

title
stringrequired

The title displayed on the card.

<Card title="Installation Guide">Step-by-step installation instructions.</Card>
icon
IconName

Icon displayed on the card. Uses the icon registry.

Available icons: book, terminal, code, download, settings, search, palette, users, play, lightbulb, file-text, info, alert-circle, check-circle, package

<Card title="Quick Start" icon="terminal">
  Get up and running quickly.
</Card>
img
string

Image URL displayed at the top (vertical) or left (horizontal) of the card.

<Card title="Feature Preview" img="https://placehold.co/400x200">
  Visual showcase of the feature.
</Card>
href
string

URL to navigate to when the card is clicked. Supports both internal and external links.

<Card title="API Reference" icon="code" href="/api-reference">
  Explore the complete API documentation.
</Card>
horizontal
boolean

Display the card in a compact horizontal layout instead of vertical.

Default: false

<Card title="Quick Tip" icon="lightbulb" horizontal>
  Cards can be displayed horizontally too.
</Card>
children
ReactNode

Description or content text displayed below the title.

<Card title="Feature" icon="code">
  This is the description that appears below the title.
</Card>

Next, explore the Callout Component for highlighting important information.

Built with Chakra UI

On this page
OverviewBasic UsageLayout OptionsVertical Layout (Default)Horizontal LayoutCard GroupsCardGroup PropsWith IconsWith ImagesVertical Image CardsHorizontal Image CardsProps