Card

Organism

Raised / flat / outline varyantlı içerik konteyneri. title + subtitle + headerRight + footer slotları desteklenir.

Props EditorInteractive

User profile

Manage your account details

Card body content goes here.

<Card
  title="User profile"
  subtitle="Manage your account details"
>
  <p>Card body content.</p>
</Card>

Raised

Preview

User profile

Manage your account details

Active

Card body content goes here.

Code
<Card title="User profile" subtitle="Manage your account" headerRight={<Badge variant="success">Active</Badge>}>
  <p>Card body content goes here.</p>
</Card>

With footer

Preview

Confirm deletion

This action is irreversible.

Code
<Card title="Confirm deletion" footer={<><Button variant="outline" size="sm">Cancel</Button><Button variant="danger" size="sm">Delete</Button></>}>
  <p>This action is irreversible.</p>
</Card>

Flat

Preview

Flat card

No shadow, uses page background color.

Code
<Card variant="flat" title="Flat card">
  <p>No shadow, uses page background color.</p>
</Card>

Outline

Preview

Outline card

Transparent background, border only.

Code
<Card variant="outline" title="Outline card">
  <p>Transparent background, border only.</p>
</Card>

Clickable / hoverable

Preview

Hoverable only

Hover for shadow

Not clickable, just visually responsive.

Code
<Card title="Clickable" onClick={() => navigate('/detail')}>...</Card>
<Card title="Hoverable" hoverable>...</Card>

Loading skeleton

Preview
Code
<Card loading />
Sourcemodules/ui/Card.tsx