Card

Displays a card with header, content, and footer.

Preview ​

Installation ​

npx sigma-ui@latest add card

Usage ​

vue
<script setup lang="ts">
import {
  Card,
  CardContent,
  CardDescription,
  CardFooter,
  CardHeader,
  CardTitle,
} from '@/components/ui/card';
</script>

<template>
  <Card>
    <CardHeader>
      <CardTitle>Card Title</CardTitle>
      <CardDescription>Card Description</CardDescription>
    </CardHeader>
    <CardContent>
      Card Content
    </CardContent>
    <CardFooter>
      Card Footer
    </CardFooter>
  </Card>
</template>

Examples ​

Basic ​

Notifications ​

API Reference ​

Card ​

Slots

SlotScope
default

The content of the component.

-

CardHeader ​

Slots

SlotScope
default

The content of the component.

-

CardTitle ​

Slots

SlotScope
default

The content of the component.

-

CardDescription ​

Slots

SlotScope
default

The content of the component.

-

CardContent ​

Slots

SlotScope
default

The content of the component.

-

CardFooter ​

Slots

SlotScope
default

The content of the component.

-

Accessibility ​

Renders plain div and heading elements with no role. It has no keyboard interactions of its own.

KeyDescription
TabMoves focus to the next focusable element inside the card, such as an input or button.
Edit this page on GitHub