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
Fund managers
412 fund managers in Europe
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.jsonimport { ChipRow, useScrollRow, useScrollPager, scrollRowFade, type Chip } from "@/components/cobalt/ui/chip-row"