Skip to content
GitHub (opens in a new tab)

Conveyor

Arrows at both ends of a row or column that is too long to fit, so people can move it along without a scrollbar.

stableOrganismcontracts/conveyor.json

Preview

Conveyor

Arrows at both ends of a row or column that is too long to fit, so people can move it along without a scrollbar.

Master

A row of draft invoices. The arrows show only when there is something to scroll, and turn off at the ends. Variants shows a column.

INV-1887

Northwind Traders

$1,088.40 · Due 1 Dec

INV-1886

Contoso Retail

$8,215.00 · Due 28 Nov

INV-1885

Fabrikam Labs

$7,630.00 · Due 27 Nov

INV-1884

Tailspin Freight

$6,905.00 · Due 26 Nov

INV-1883

Adatum Health

$6,120.00 · Due 25 Nov

INV-1882

Litware Inc.

$2,480.00 · Due 24 Nov

INV-1881

Proseware

$1,940.00 · Due 22 Nov

INV-1880

Woodgrove Bank

$12,300.00 · Due 20 Nov

Usage

Use Conveyor around a run of chips or cards that does not fit: a row of Badge chips, draft invoices, or a tall side list. It is not for KPIs: Scoreboard wraps its figures and is the only metric picker. One component — put the run inside it. Arrows show only when there is overflow, and each one disables at its end. A soft fade sits where content passes under an arrow. A press moves most of a screenful, or the step you set. Trackpad, wheel, and drag still work. Focus the run; arrow keys scroll it. For paged slides with a Slide 2 of 5 caption, use Carousel. In a box narrower than 40rem (--grid-breakpoint-sm), the arrows give way to swipe: the track keeps the whole width and comes to rest on a whole piece. It stays a focus stop, so the arrow keys still move it.

Do's

  • A row of chips or cards that runs past the edge
  • A row of Badge chips that runs past the edge
  • A tall list in a narrow column, scrolled up and down

Don'ts

  • Paged slides or a gallery with Slide N of M — use Carousel
  • Paging a table — use Pagination
  • A second scrolling box inside the run — turn that one's scrolling off
  • KPIs or a metric picker — use Scoreboard, which wraps
<Conveyor
  label="Draft invoices"
>
  <div className="row">{invoices.map((i) => <Card key={i.id} title={i.id} description={i.customer}>…</Card>)}</div>
</Conveyor>

When to use

  • A row of chips or cards that runs past the edge
  • A row of Badge chips that runs past the edge
  • A tall list in a narrow column, scrolled up and down

When not to use

  • Paged slides or a gallery with Slide N of M — use Carousel
  • Paging a table — use Pagination
  • A second scrolling box inside the run — turn that one's scrolling off
  • KPIs or a metric picker — use Scoreboard, which wraps

What an agent reads

import { Conveyor } from "agentic-ds-kit";
must
  • The run is a group with the label, and a focus stop, so the arrow keys scroll it
  • Each arrow is a kit Button that says what it does, like Scroll key metrics right
  • An arrow turns off at its end of the run
  • Smooth scrolling is off when the person prefers reduced motion
  • Narrower than --grid-breakpoint-sm (40rem): arrows give way to swipe; keys still move it
defaults
  • orientation horizontal
  • label Content
stops if
  • Do not use Conveyor for paged slides or a gallery — use Carousel
  • Do not use Conveyor to page a table — use Pagination
  • Do not put a second scrolling box inside it
  • Do not nest two Conveyors
  • Do not invent ScrollArea, Overflow, Marquee, or a local scroller (a moving logo wall is the LogoStrip block)
  • Do not use embla or Carousel internals
  • Do not add loop, showIndex, or slidesPerView
  • Do not use appearance=solid mode=primary on the arrows — ghost icon-only only
  • Do not use raw hex
  • Do not put Scoreboard or KPIs in it; Scoreboard wraps

From contracts/conveyor.json: must is the a11y requirements, defaults the prop defaults, stops if the doNot rules where the agent asks instead of inventing a cousin.

Props

NameTypeRequiredDefaultNotes
childrenReactNodeYes—The run that scrolls (a row of Badge chips, a stack of cards). Not an items[] of slides, and not a Scoreboard.
orientationhorizontal | verticalNohorizontalHorizontal: arrows left/right. Vertical: arrows above/below; the Conveyor needs a height.
stepnumberNo—Pixels one press moves. Omit: 80% of the visible size.
labelstringNoContentNames the group and the arrows (“Scroll filters right”).
  • Component
    →

    Carousel

    Paged track of slides with prev/next kit Buttons.

  • Component
    →

    Pagination

    Page navigation with previous, next, page numbers, and ellipsis, plus optional first/last, a rows-per-page Select and a page or results status for table footers.

  • Component
    →

    Scoreboard

    Metrics strip of kit Scorecards: two to six figures, and the only metric picker.