apps/mantine.dev/src/pages/core/scroller.mdx
import { ScrollerDemos, TabsDemos } from '@docs/demos'; import { Layout } from '@/layout'; import { MDX_DATA } from '@/mdx';
export default Layout(MDX_DATA.Scroller);
Scroller is a horizontal scroll container that displays navigation controls (chevron buttons)
when content overflows its container. It supports native scrolling via trackpad, shift + mouse wheel,
or touch gestures.
Set draggable prop to enable scrolling by clicking and dragging with the mouse:
Use the scrollAmount prop to control how many pixels the container scrolls when clicking
the navigation buttons. The default value is 200.
Use the controlSize prop to change the size of the navigation buttons. It accepts any valid
Mantine size value (xs, sm, md, lg, xl) or a number (converted to pixels).
Use startControlIcon and endControlIcon props to replace default chevron icons
with custom icons:
Use Scroller inside Tabs.List to make the tabs list scrollable when there are too many tabs to fit in the available space: