Command Palette
Search for a command to run
Docs
Card

Card

Displays a card with header, content, and footer.

Create project

Deploy your new project in one-click.

Installation

npx shadcn-svelte@next add card

Usage

	<script lang="ts">
  import * as Card from "$lib/components/ui/card/index.js";
</script>
 
<Card.Root>
  <Card.Header>
    <Card.Title>Card Title</Card.Title>
    <Card.Description>Card Description</Card.Description>
  </Card.Header>
  <Card.Content>
    <p>Card Content</p>
  </Card.Content>
  <Card.Footer>
    <p>Card Footer</p>
  </Card.Footer>
</Card.Root>

Examples

Notifications

You have 3 unread messages.

Push Notifications

Send notifications to device.

Your call has been confirmed.

1 hour ago

You have a new message!

1 hour ago

Your subscription is expiring soon!

2 hours ago