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.
Five components scroll a row
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.
The Scroller component includes the following accessibility features:
- Scroll buttons are named "Scroll Previous" and "Scroll Next"; labels translates them
- Keyboard navigation support for the scroll buttons
- Preserves keyboard navigation and click events of child elements