Documentation

Asgard

Getting started

Theming

Guides

Layout

Docking

Inputs & forms

Button

Switch

Checkbox

Radio

Select

Slider

TextBox

Upload

ImageCropper

Pickers

Color picker

Calendar

Time picker

DateTime input

Data display

Card

Accordion

Typography

Progress

DataTable

TreeView

SyntaxColor

MarkdownRenderer

Terminal

Layout & docking

Grid

Splitter

SDiv

Dock

Theme switcher

Media query

Feedback & overlays

Alert

Toast

Tooltip

Popups

Drawer

FloatingPanel

FloatingWindow

Navigation & chrome

Breadcrumb

Stepper

Toolbar

Ribbon

ContextMenu

FeatureTour

Documentation

Asgard

Getting started

Theming

Guides

Layout

Docking

Inputs & forms

Button

Switch

Checkbox

Radio

Select

Slider

TextBox

Upload

ImageCropper

Pickers

Color picker

Calendar

Time picker

DateTime input

Data display

Card

Accordion

Typography

Progress

DataTable

TreeView

SyntaxColor

MarkdownRenderer

Terminal

Layout & docking

Grid

Splitter

SDiv

Dock

Theme switcher

Media query

Feedback & overlays

Alert

Toast

Tooltip

Popups

Drawer

FloatingPanel

FloatingWindow

Navigation & chrome

Breadcrumb

Stepper

Toolbar

Ribbon

ContextMenu

FeatureTour

Layout & docking

A div with theme-aware custom scrollbars.

A styled div that renders theme-aware custom scrollbars, consistently across browsers.

Key features:

  • Drop-in for any scrollable <div>, all native div props forwarded
  • Two scrollbar sizes: normal and large
  • Semantic colors or fully custom thumb / track colors
  • Configurable opacity for rest, hover and active states
Loading preview…
When to use it
  • Scrollable panels and sidebars
  • Chat / log / feed containers
  • Anywhere the native scrollbar clashes with the theme
Properties
PropTypeDefaultDescription
scrollbarSize'normal' | 'large''normal'Thickness of the scrollbar.
semantic'primary' | 'secondary' | 'success' | 'error' | 'warning' | 'info'Accent color for the scrollbar thumb (falls back to the theme secondary text color).
scrollbarColorstringCustom thumb color, overrides semantic.
scrollbarTrackColorstringCustom track color.
scrollbarOpacitynumber0.3Thumb opacity at rest.
scrollbarHoverOpacitynumber0.5Thumb opacity on hover.
scrollbarActiveOpacitynumber0.6Thumb opacity while dragging.
scrollbarBorderRadiusnumber4Corner radius of the thumb in pixels.
childrenReactNodeScrollable content.
Notes
  • SDiv extends HTMLAttributes<HTMLDivElement>, so style, className, onScroll and the rest pass straight through.
  • You still set overflow yourself (e.g. overflowY: "auto"); SDiv only styles the resulting scrollbar.
Presets