Scroll Area

Augments native scroll with a styled overlay scrollbar on bits-ui ScrollArea. Content keeps native momentum — only the scrollbar chrome is replaced, and it fades on idle.

Usage

Tags

v1.2.0-beta
v1.1.0
v1.0.0
v0.9.4
v0.9.3
v0.9.2
v0.9.1
v0.9.0
v0.8.2
v0.8.1
v0.8.0
v0.7.5
v0.7.4
v0.7.3
v0.7.2
v0.7.1
v0.7.0
v0.6.1
v0.6.0
v0.5.0

Horizontal

Set orientation="horizontal" to show a horizontal scrollbar.

tag-01tag-02tag-03tag-04tag-05tag-06tag-07tag-08tag-09tag-10tag-11tag-12tag-13tag-14tag-15tag-16tag-17tag-18tag-19tag-20tag-21tag-22tag-23tag-24

With separator

Recent commits

v1.2.0-beta — handoff polish
v1.1.0 — handoff polish
v1.0.0 — handoff polish
v0.9.4 — handoff polish
v0.9.3 — handoff polish
v0.9.2 — handoff polish
v0.9.1 — handoff polish
v0.9.0 — handoff polish
v0.8.2 — handoff polish
v0.8.1 — handoff polish

API reference

Inherits bits-ui ScrollArea.Root props. The wrapper also renders a styled Scrollbar + Thumb pair internally.

PropTypeDescription
'vertical' | 'horizontal' | 'both'Which scrollbar axis to render. Both shows vertical and horizontal.
'auto' | 'always' | 'scroll' | 'hover'When the scrollbar is visible. Hover shows it on pointer-over; scroll shows it only while scrolling.
numberMilliseconds to wait before hiding the scrollbar in scroll/hover mode.
'ltr' | 'rtl'Reading direction. Flips horizontal scrollbar placement.
HTMLElement | nullTwo-way-bindable reference to the scroll viewport element.
stringMerged onto the viewport container via tailwind-merge.