Introducing PrimeReact v11-alpha 🎉Discover Now

Card

Card is a flexible container component.

Pro Subscription
Everything you need to scale your workflow

Get unlimited access to all features, priority support, and advanced analytics to help your team grow faster.

$29 / month
preview

Installation#

npx shadcn@latest add @primereact/card

Usage#

import { Card, CardBody, CardCaption, CardContent, CardFooter, CardSubTitle, CardTitle } from '@/components/ui/card';
<Card>
    <CardBody>
        <CardCaption>
            <CardTitle>Title</CardTitle>
            <CardSubTitle>Subtitle</CardSubTitle>
        </CardCaption>
        <CardContent />
        <CardFooter />
    </CardBody>
</Card>

Examples#

Basic#

Pro Subscription
Everything you need to scale your workflow

Get unlimited access to all features, priority support, and advanced analytics to help your team grow faster.

$29 / month
basic-demo

With Form#

Use Card, Card.Body, Card.Caption, Card.Title, Card.Subtitle, Card.Content, Card.Footer, to create a simple card.

Welcome back
Sign in with your email to continue.
Don't have an account? Sign up
with-form-demo

Advanced#

Use Card.Header to place an image, avatar or other content in the header.

user header
Sakura Fresh Market
DailyPremium

Sakura Fresh Market is your go-to store for fresh local produce, Japanese snacks, and daily essentials — all in one place!

4.6 (200+ reviews)
Tokyo, Shibuya-ku
advanced-demo

Accessibility#

Screen Reader#

Card is a structural container. If the card represents a standalone content region, provide an accessible name using aria-label or aria-labelledby on Card.Root.

Keyboard Support#

Card does not include built-in keyboard interaction. Keyboard behavior depends on interactive elements placed inside the card (for example buttons, links, or form controls).