Skip to content

ScrollArea ​

ScrollArea is a container with custom styled thin scrollbars — pure CSS, no JavaScript tracking required.

Vertical scroll ​

Tailwind v4
vue
<ScrollArea height="200px">
  <p v-for="i in 20" :key="i">Line {{ i }}</p>
</ScrollArea>

Horizontal scroll ​

Tailwind v4
vue
<ScrollArea orientation="horizontal">
  <div style="display:flex;gap:12px;width:max-content">
    <!-- wide content -->
  </div>
</ScrollArea>

Both axes ​

Tailwind v4
vue
<ScrollArea orientation="both" height="180px">
  <!-- wide + tall content -->
</ScrollArea>

Props ​

PropTypeDefaultDescription
heightstring—CSS height value e.g. '400px'
maxHeightstring—CSS max-height value
widthstring—CSS width value
orientation'vertical' | 'horizontal' | 'both''vertical'Scroll direction(s)

Slots ​

SlotDescription
defaultScrollable content

Private — Jetpack Labs internal use only