Default
.scrollbar — thin Firefox bar + WebKit thumb.
Glass-styled overflow chrome — opt in on any scroll region, and already applied to modal, sheet, menus, and picker panels.
Live
<div class="scrollbar" style="max-height: 12rem">
<!-- long content -->
</div>
<div class="scrollbar scrollbar--thin" style="max-height: 12rem">…</div>
<div class="scrollbar scrollbar--hidden" style="max-height: 12rem">…</div>
import { Scrollbar } from 'caustica-design/core'
<Scrollbar style={{ maxHeight: '12rem' }}>…</Scrollbar>
<Scrollbar size="thin" style={{ maxHeight: '12rem' }}>…</Scrollbar>
<Scrollbar size="hidden" style={{ maxHeight: '12rem' }}>…</Scrollbar>
.scrollbar — thin Firefox bar + WebKit thumb.
.scrollbar--thin — narrower WebKit gutter for side rails.
.scrollbar--hidden — scroll without a visible bar.
tabindex="0" (and a name via
aria-label when unlabeled) so keyboard users can reach and scroll them.
.scrollbar--hidden for secondary overflow where another cue exists.
| Class | Description |
|---|---|
.scrollbar |
Overflow auto + themed scrollbar chrome. |
.scrollbar--thin |
Narrower WebKit scrollbar size. |
.scrollbar--hidden |
Hides the bar; scrolling still works. |
From src/core/Scrollbar.tsx — renders a <div>.
| Prop | Type | Default | Description |
|---|---|---|---|
size |
'md' | 'thin' | 'hidden' |
'md' |
Maps to modifier classes. |
className |
string |
— | Merged onto the root. |