Scroll Area
Usage
Include CSS
Import Tailwind and one full A3S UI style bundle.
Or import only the base CSS and one style pack.
Scroll Area uses A3S UI scrollbar component classes.
Using CDN or bundler imports? See the Installation page.
Add your scroll area HTML
Use scrollbar or scrollbar-sm on an element that already scrolls with overflow-auto, overflow-y-auto, or overflow-x-auto.
Use scrollbar or scrollbar-sm on an element that already scrolls with overflow-auto, overflow-y-auto, or overflow-x-auto.
The component class augments native scrolling for cross-browser styling. It does not wrap content, replace browser scroll behavior, or require JavaScript.
Examples
These examples use Card as the framed surface so border and radius come from the active style pack.
Horizontal
Use scrollbar with overflow-x-auto for horizontal scrolling.
Thin
Use scrollbar-sm for compact scrollable regions like menus, listboxes, sidebars, and command results.
RTL
Set dir="rtl" on the scrollable element or one of its ancestors to use right-to-left layout.