Skip to content
HomeCobalt

Card

A white box that groups one item's title, details and actions.

Examples

A fund's title, a copy button in the header, its facts, and one action at the foot.
Harbour Large Cap Core
Harbour Capital, filed Aug 29.
Net assets
$4.8B
Expense ratio
0.42%
Holdings
186
In a sectionTwo cards under one section heading.

Watchlist

Harbour Large Cap Core
Harbour Capital
New Form ADV filed Aug 29.
Northgate Credit Opportunities
Northgate Partners
No new filings this month.

Variants

Net assets
$4.8B
+6.1% up
Against a year before
Expense ratio
0.42%
−2.3% down
Below the median
Holdings
186
+6.9% up
12 added in Q3
Small16px of spacing and gap, for a rail or a dense grid.

States

Recent filings

  • Form ADV amendmentAug 29
  • Form N-PORTAug 14
  • Form 13FJul 30
As sectionRendered as a labelled section, with its title as an h2.
The London skyline over the Thames at sunset.
London office
Desks for 12 on the fourth floor, facing the river.
Two desks free today.
With imageA picture as the first child fills the top corners.

Usage

Use it when

  • One thing has a title, a line of detail and an action that belong together, and the page holds several such things side by side.
  • A section's content is a set, such as lists or people, and each member needs its own surface.

Use something else when

  • The content is a single list or table that fills the page. Use Section with the list in it instead, with no card.
  • The surface floats over the page and needs a shadow. Use Popover or Dialog instead.
  • The card would be a labelled block in a page's rail. Use RailCard instead, which is this card at the small size as a section.
  • The thing is one row among many of the same shape. Use DataTable instead.

Rules

General

Content

Avoid

Limits

Install

npx shadcn@latest add https://kaanarici.com/r/cobalt/card.json
import { Card, CardHeader, CardTitle, CardDescription, CardAction, CardContent, CardFooter } from "@/components/cobalt/ui/card"