Skip to content
HomeCobalt

Item

Shows one thing in a list as a row: its name, a line about it, and a time or an action at the end.

Examples

Search results on a card, each with its adviser and when it last filed.
  • Harbour Large Cap Core
    Harbour Capital Advisors, master fund
  • Calder Global Equity
    Calder & Rowe, feeder fund
  • Northgate Short Duration
    Northgate Investment Management
The open rowOpen a booking and its details show under the list, with its row held in the accent's soft fill.
A date at the startA date leaf starts each booking, and the time beside it is what a screen reader reads.
  • Amara Okafor, Library corner
  • Quarterly review, Harbour room
  • Due diligence, Boardroom
Event rowsBriefings on a card, with the room's photo and its bookmark at the end of each row.
  • Quarterly review of the income funds
    Hosted by Carmen Ruiz
    Lecture hall, second floor
  • Form PF changes for mid-size advisers
    Hosted by Daniel Mercer
    Auditorium, ground floor
PendingA list on its first load: each row holds its title, its line and its time with skeleton lines of steady, varied widths, and the rows replace them with no change in height.
In a cardSettings rows in a card, each with a switch at the end that turns it on or off.
Email me about
New filings
When a fund you follow files.
Late filings
When a fund you follow misses its deadline.
Weekly digest
Every Monday, what changed last week.

Variants

Arrival
Fri, Oct 24 after 3 PM
Guests
2 adults
Confirmation
Sent to the address on the booking
PlainRows on whatever is behind them, for a short list inside a section or a card. The default.
  • Sofia Rossi
    Owner
  • Hana Sato
    Editor
  • Amara Okafor
    Viewer
CardRows on their own card with 4px around and between the rows them, for a list that is the page's main content.

Usage

Use it when

  • A list of things a person scans by name: search results, members, recent bookings, followed funds.
  • A list of settings, each with a switch or a button at its end.
  • A list of things on days a person plans around, such as bookings, events or deadlines, with a DateTile in ItemMedia so the eye finds a day.

Use something else when

  • The things share several columns of figures a person compares. Use Table instead, or DataTable past 50 rows.
  • The list is a menu of commands that opens from a button. Use DropdownMenu instead.
  • The list is facts about one thing. Use DataList instead.
  • A date sits in a table cell or a sentence. Use the date() formatter from registry/cobalt/lib/format.ts instead of a DateTile, and RelativeTime for a time relative to now.

Rules

General

Content

Avoid

Limits

Install

npx shadcn@latest add https://kaanarici.com/r/cobalt/item.json https://kaanarici.com/r/cobalt/date-tile.json
import { ItemGroup, Item, ItemMedia, ItemIcon, ItemContent, ItemTitle, ItemDescription, ItemActions } from "@/components/cobalt/ui/item"
import { DateTile } from "@/components/cobalt/ui/date-tile"