## Usage
Import Tailwind and one full Basecoat style bundle.
```css
@import "tailwindcss";
@import "basecoat-css/vega.css";
```
Or import only the base CSS and one style pack.
```css
@import "tailwindcss";
@import "basecoat-css/base.css";
@import "basecoat-css/styles/vega.css";
```
Scroll Area uses Basecoat scrollbar component classes.
Using CDN or bundler imports? See the [Installation page](/installation).
Use `scrollbar` or `scrollbar-sm` on an element that already scrolls with `overflow-auto`, `overflow-y-auto`, or `overflow-x-auto`.
```html
Your scrollable content here.
```
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.
Photo by Ornella BinniPhoto by Tom ByromPhoto by Vladimir Malyavko
### Thin
Use `scrollbar-sm` for compact scrollable regions like menus, listboxes, sidebars, and command results.
Recent files
### RTL
Set `dir="rtl"` on the scrollable element or one of its ancestors to use right-to-left layout.