2.0 alpha
These docs describe 2.0. Install it with @once-ui-system/core@alpha.
On 1.8.x? Read the 1.x docs
TrademarkTrademarkDocs
Ctrl k
Search docs...
Components

Scroller

Updated: June 30, 2026
View on GitHub
The Scroller component creates a scrollable container with automatic navigation buttons that appear when content overflows. It's perfect for horizontal or vertical scrolling of content like cards, images, or any elements that might not fit in the available space. The Scroller can be configured to scroll vertically by setting the direction prop to column. You can customize the color of the fade effect that appears behind the scroll buttons.
Prop
Type
Default
children
React.ReactNode
direction
Which way it scrolls.
rowcolumn
row
fadeColor
Colour of the fade at each end. Match the surface behind it.
BaseColortransparent
onItemClick
Called with the index of the item clicked.
(index: number) => void
radius
Corner roundness of the strip.
xllmsxsnonefull
…and every FlexProps propinherited
className
string
style
React.CSSProperties
The Scroller component includes the following accessibility features:
  • Scroll buttons have appropriate aria-labels
  • Keyboard navigation support for the scroll buttons
  • Preserves keyboard navigation and click events of child elements
Edit this page on GitHub
TrademarkTrademark
Built with curiosity by Lorant One and the Design Engineers Club