8.4k

Card

A content container for grouping related information.

Installation

pnpm dlx shadcn@latest add https://coss.com/ui/r/card.json

Usage

import {
  Card,
  CardDescription,
  CardFooter,
  CardHeader,
  CardPanel,
  CardTitle,
} from "@/components/ui/card"
<Card>
  <CardHeader>
    <CardTitle>Title</CardTitle>
    <CardDescription>Description</CardDescription>
  </CardHeader>
  <CardPanel>Content</CardPanel>
  <CardFooter>Footer</CardFooter>
</Card>

Comparing with shadcn

If you’re already familiar with shadcn/ui, this guide highlights the small differences and similarities so you can get started with coss.com ui quickly.

Quick Checklist

  • Use CardPanel going forward; CardContent remains for legacy

coss.com ui

Built by and for the team of Cal.com, Inc. — the leading commercial open source company (“coss”).