labsUI

Scroll Area

Overlay scrollbars: thin thumbs that fade in while scrolling or on hover, widen under the pointer and drag. Scrolling stays native; the labeled region is keyboard-focusable.

npx @kznlabs/labsui add scroll-area
  1. Wade muted Cameron for 10 minutes
  2. Bot deployed v2.4.1
  3. Jane changed the server icon
  4. Esther joined the server
  5. Slow mode on #general set to 5s
  6. Brooklyn pinned a message in #clips
  7. Wade removed 12 spam messages
  8. Jane created the role Event host
  9. Cameron left the server
  10. Bot restarted after an update
  11. Esther boosted the server
  12. Jane renamed #memes to #fun
  • Clip 1
  • Clip 2
  • Clip 3
  • Clip 4
  • Clip 5
  • Clip 6
  • Clip 7
  • Clip 8
  • Clip 9
  • Clip 10
  • Clip 11
  • Clip 12

<ScrollArea>

Overlay scrollbars: thin thumbs that fade in while scrolling or on hover, widen on hover and drag. Scrolling itself stays native (wheel, touch, keyboard); a horizontal one also takes the mouse wheel. Give it a height. aria-label names the scrollable region so keyboard users can focus and scroll it.

  • orientationdefault "vertical"
    "vertical" | "horizontal" | "both"

    Axes that scroll and get a thumb.

  • viewportClassName
    string

    Classes for the scrolling viewport (padding goes here).

PropTypeDefault
orientation

Axes that scroll and get a thumb.

"vertical" | "horizontal" | "both""vertical"
viewportClassName

Classes for the scrolling viewport (padding goes here).

string—

Also accepts every <div> prop.

* required. Every component also takes className.