Scroller Component Showcase
This page demonstrates all the available options for the Scroller component.
Default Configuration
Basic scroller with default settings
itemWidth Option
itemWidth="40rem" - Sets fixed width for each scroll item
itemMinWidth Option
itemMinWidth="50cqi" - Sets minimum width for each scroll item. Default is 80cqi.
gap
gap="5px" - defines the gap, defaults to 2rem;
marker Option
marker - Adds markers as scroll indicators instead of scrollbar.
accentColor Option
accentColor="#ff6b6b" - Sets custom accent color for the scroller
forcedScrolling Option
forcedScrolling - Forces scrolling behavior even on larger screens
scrollAlign Options
scrollAlign="start" (default)
Items align to the start of the scroll container
scrollAlign="center"
Items align to the center of the scroll container
scrollAlign="end"
Items align to the end of the scroll container
inlineScrollPadding Option
inlineScrollPadding="25cqi" - Sets padding around the scroll area. Mostly useful in combination with forcedScrolling.
Combined Options
Multiple options working together
Custom Classes
class="custom-scroller" - Apply custom CSS classes