Card

The Card component is a flexible container for displaying information, media, and actions in a consistent layout.

Usage

Default Card

Default Card

This is a simple card with default props.

<Card title="Default Card" description="This is a simple card with default props." imageUrl={Logo} />

Props

Sortable data table
PropTypeDefaultDescription
titlestring-Title displayed at the top of the card.
descriptionstring-A short description or summary for the card.
theme"primary" | "secondary" | "tertiary" | "quaternary" | "clear"Configured DefaultThe color theme of the card.
state"" | "success" | "error" | "warning"-Optional state indicator for visual feedback.
cardIconReactNode-An icon element displayed in the card header.
imageUrlstring-URL of an image displayed in the card.
imageAltstring-Alternative text for the card image.
imageHeightnumber-Explicit height for the image.
imageWidthnumber-Explicit width for the image.
imageFillboolean-Use fill layout for the image.
rounding"none" | "small" | "medium" | "large"Configured DefaultControls border radius of the card.
shadow"none" | "light" | "medium" | "strong" | "intense"Configured DefaultControls the shadow depth of the card.
size"xs" | "small" | "medium" | "large" | "xl"Configured DefaultControls the card size.
align"left" | "center" | "right""center"Controls the alignment of text and content.
layout"vertical" | "horizontal""vertical"Controls the card layout orientation.
outlinebooleanfalseEnables outline style for the card.
blurbooleanfalseApplies a blur effect to the card background.
loadingbooleanfalseShows a loading skeleton overlay.
actionButtonsArray<{ label: string; icon?: ReactNode; theme?: string; state?: string; onClick: () => void }>-Defines footer action buttons.
useIconButtonsbooleanfalseRenders action buttons as icon-only buttons.
renderHeader() => ReactNode-Custom render function for header content.
renderContent() => ReactNode-Custom render function for main content.
renderFooter() => ReactNode-Custom render function for footer content.
classNamestring-Additional custom class name for the card container.
data-testidstring"card"Test ID for testing frameworks.
aria-labelstring-Accessible label for screen readers.