Scroll Area
Augments native scroll functionality for custom, cross-browser styling.
// src/components/ui/scroll-area.tsx — a fixed-size box with `overflow-y-auto` and a thin custom scrollbar.
// The .scrollbar-thin utility styles the WebKit scrollbar; no JS needed.
Installation
$ bext ui add scroll-area
Copy and paste the following into src/components/ui/scroll-area.tsx.
// src/components/ui/scroll-area.tsx — a fixed-size box with `overflow-y-auto` and a thin custom scrollbar.
// The .scrollbar-thin utility styles the WebKit scrollbar; no JS needed.
On This Page