Skip to content

Card

Displays a card with header, content, and footer.

Examples

Default

Create project

Deploy your new project in one-click.

vue
<Card class="w-87.5">
  <CardHeader>
    <CardTitle>Create project</CardTitle>
    <CardDescription>Deploy your new project in one-click.</CardDescription>
  </CardHeader>
  <CardContent>
    <form>
      <div class="grid w-full items-center gap-4">
        <div class="flex flex-col space-y-1.5">
          <Label for="name">Name</Label>
          <Input id="name" placeholder="Name of your project" />
        </div>
      </div>
    </form>
  </CardContent>
  <CardFooter class="flex justify-between">
    <Button variant="outline">Cancel</Button>
    <Button>Deploy</Button>
  </CardFooter>
</Card>

Slots

Card

SlotDescription
defaultThe content of the card (Header, Content, Footer).

CardHeader

SlotDescription
defaultThe header content (Title, Description).

CardTitle

SlotDescription
defaultThe title content.

CardDescription

SlotDescription
defaultThe description content.

CardContent

SlotDescription
defaultThe main content of the card.

CardFooter

SlotDescription
defaultThe footer content.