Skip to content
HomeCobalt

Chip row

Narrows a list to one of any number of choices, each a link to the same page with that choice in its address, in a row that scrolls sideways.

Examples

Region chips under a section heading narrow the list below: one chip is current, each is a link, and the row scrolls sideways where the chips do not fit, as on a phone.

Fund managers

412 fund managers in Europe

The current chip past the edgeOpened on Oceania, the last of seven chips, the row starts scrolled so the current chip is in view, with a fade at the edge that has more.
Events
  • Sydney fund managers forumNov 12
  • Auckland private credit dayNov 19

Usage

Use it when

  • A list is narrowed by one choice from a set that can be any length: places, regions, kinds, years.
  • The choice belongs in the address, so the narrowed list can be shared and reloaded.

Use something else when

  • The choice has 2 or 3 fixed options. Use SegmentedControl instead.
  • More than one choice can be on at once, or the choice is not a link. Use Pill instead.
  • The chips move between pages of the app. Use Nav instead.
  • The set is longer than 12 or needs search. Use Select instead, or Combobox when a person types to find one.

Rules

General

Content

Avoid

Limits

Install

npx shadcn@latest add https://kaanarici.com/r/cobalt/chip-row.json
import { ChipRow, useScrollRow, useScrollPager, scrollRowFade, type Chip } from "@/components/cobalt/ui/chip-row"