Docs
Card

Card

Displays a card with header, content, and footer.

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