Augments native scroll functionality for custom, cross-browser styling.
Tags
v1.2.0-beta.50
v1.2.0-beta.49
v1.2.0-beta.48
v1.2.0-beta.47
v1.2.0-beta.46
v1.2.0-beta.45
v1.2.0-beta.44
v1.2.0-beta.43
v1.2.0-beta.42
v1.2.0-beta.41
v1.2.0-beta.40
v1.2.0-beta.39
v1.2.0-beta.38
v1.2.0-beta.37
v1.2.0-beta.36
v1.2.0-beta.35
v1.2.0-beta.34
v1.2.0-beta.33
v1.2.0-beta.32
v1.2.0-beta.31
v1.2.0-beta.30
v1.2.0-beta.29
v1.2.0-beta.28
v1.2.0-beta.27
v1.2.0-beta.26
tsx
1
2// 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
Terminal
$ bext ui add scroll-area
Copy and paste the following into src/components/ui/scroll-area.tsx.
scroll-area.tsx
1
2// 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.