Cards

Cards are container components that group related content and actions together. They provide a flexible way to present information with optional elements like icons, titles, and links in a visually distinct box.

You can use individual cards or use the CardGroup component to arrange multiple cards in a responsive grid layout.

Location

You can set the icon position as left or top.

Adding images to cards

Cards support displaying images alongside content. The image automatically resizes to fit the card dimensions, so you typically don’t need to specify imageWidth or imageHeight unless you want to override the default behavior.

Product Overview
Product Overview

Display an image alongside your card content. The image automatically scales to fit the card.

Getting Started
Getting Started

Position the image at the top of the card for a banner-style layout.

Properties

title
string

The title text to display in the card

icon
string | img

Either a Font Awesome icon class (e.g. ‘brands python’) or a custom image

href
string

Optional URL that makes the entire card clickable

iconPosition
'top' | 'left'Defaults to top

The position of icon relative to the text.

color
string

Hex color value for the icon (e.g. #FF0F00). Ignored if lightModeColor and darkModeColor are both set

darkModeColor
string

Hex color value for the icon in dark mode (e.g. #FF0F00)

lightModeColor
string

Hex color value for the icon in light mode (e.g. #FF0F00)

src
string

URL of the image to display in the card. When set, the card displays the image alongside the content.

imagePosition
'top' | 'left' | 'right' | 'bottom'Defaults to top

Position of the image relative to the card content. Use imagePosition to control the layout.

imageWidth
string

Width of the image (e.g. 200px, 50%). Only use if you need to override the default sizing. The image automatically resizes to fit the card by default.

imageHeight
string

Height of the image (e.g. 150px, 100%). Only use if you need to override the default sizing. The image automatically resizes to fit the card by default.