Scroller wraps children in a scrollable flex container with optional prev/next IconButtons and Fade overlays at the edges.
Prop
Default
Notes
direction
"row"
"column" for vertical rails
fadeColor
"transparent"
Match your background token
onItemClick
—
Optional index callback for keyboard nav
radius
—
Clip children to rounded corners
Use Scroller for filter chip rows that overflow on mobile — the arrow buttons hint that more content exists off-screen.Describe chip children in prose: map your filter options to Tag or Button elements inside the Scroller.
Chip filter rail
<Column gap="8" fillWidth>
<Text variant="label-default-s" onBackground="neutral-weak">
Categories
</Text>
{/* Scroller direction="row" gap="8" fadeColor="page" */}
{/* map categories to Tag or Button per chip */}
{/* /Scroller */}
</Column>
Set fadeColor to match the parent background ("page", "surface", or "overlay") so fades blend seamlessly.
InfiniteScroll
InfiniteScroll renders your items and watches a sentinel element at the bottom. When the sentinel enters the viewport, it calls loadMore.
Prop
Type
Notes
items
T[]
Current loaded items
renderItem
(item, index) => ReactNode
Row renderer per item
loadMore
() => Promise<boolean>
Return false when no more pages
loading
External loading flag
The loadMore function should append to your items array in the parent and return whether more data exists.