Caprice LogoCaprice UI

Card

Displays a card with header, content, and footer.

Installation

npx shadcn@latest add @caprice/card

Usage

import * as Card from "@/components/caprice-ui/card"
<Card.Root>
  <Card.Header>
    <Card.Title>Title</Card.Title>
    <Card.Description>Description</Card.Description>
    <Card.Action>
      <Button variant="link">Sign Up</Button>
    </Card.Action>
  </Card.Header>
  <Card.Panel>Some content</Card.Panel>
</Card.Root>

Examples

Inset

Differences with shadcn/ui / Radix

If you're familiar with Radix UI and shadcn/ui, most patterns will carry over. This guide points out the differences so you can start using Caprice UI without surprises.

Key changes

Comparison Example

shadcn/ui
Caprice UI

Accessibility

API Reference