Displays a card with header, content, and footer.

Login to your account

Enter your details below to login to your account

Don't have an account? Sign up

Usage

<div class="card">
  <header>
    <h2>Card Title</h2>
    <p>Card Description</p>
  </header>
  <section>
    <p>Card Content</p>
  </section>
  <footer>
    <p>Card Footer</p>
  </footer>
</div>

The component has the following HTML structure:

<div class="card">
The card container.
<header>
The header of the card.
<h2>
The title of the card.
<p> Optional
The description of the card.
<section>
The content of the card.
<footer> Optional
The footer of the card.

Examples

Size

Small Card

A compact card with reduced spacing.

Use data-size="sm" for denser layouts.

Meeting Notes

Transcript from the meeting with the client.

Client requested dashboard redesign with focus on mobile responsiveness.

  1. New analytics widgets for daily/weekly metrics
  2. Simplified navigation menu
  3. Dark mode support
  4. Timeline: 6 weeks
  5. Follow-up meeting scheduled for next Tuesday
@hunvreus @shadcn @adamwathan

With image

Is this an image?

This is a card with an image.

Photo by Drew Beamer
1 2 350m² $135,000

RTL

Cards support right-to-left layouts through native text flow. Add dir="rtl" to the card or an ancestor.

إعدادات الحساب

راجع إعدادات الأمان والإشعارات.

يمكنك تعديل هذه الإعدادات في أي وقت.