Skip to content

Card

The Card component provides a flexible container for displaying content within a card layout. It’s composed from four parts — Root, Image, Title, and Content — and supports various configurations such as sizes, orientations, and the position of the image relative to the content.

Playground

Installation

import { Card } from '@harnessio/ui/components'
return (
<Card.Root orientation="vertical" position="start">
<Card.Image src="/card-image.png" alt="" />
<Card.Title>Card Title</Card.Title>
<Card.Content>
Card content goes here
</Card.Content>
</Card.Root>
)