Skip to content
Layout

ScrollArea

Native scrolling with Seed's thin scrollbars.

import { ScrollArea } from "@flinbu/seed";

A changelog

  1. v2.12.0: tokens and components updated.
  2. v2.11.0: tokens and components updated.
  3. v2.10.0: tokens and components updated.
  4. v2.9.0: tokens and components updated.
  5. v2.8.0: tokens and components updated.
  6. v2.7.0: tokens and components updated.
  7. v2.6.0: tokens and components updated.
  8. v2.5.0: tokens and components updated.
  9. v2.4.0: tokens and components updated.
  10. v2.3.0: tokens and components updated.
  11. v2.2.0: tokens and components updated.
  12. v2.1.0: tokens and components updated.
import { ScrollArea } from "@flinbu/seed";

<ScrollArea aria-label="Changelog" className="h-48 w-full max-w-sm rounded-xl border border-secondary bg-primary">
  <ol className="m-0 flex list-none flex-col gap-sm p-base">
    {Array.from({ length: 12 }, (_, i) => <li key={i} className="text-secondary body-body-3-regular"><span className="font-mono text-primary">v2.{12 - i}.0</span>: tokens and components updated.</li>)}
  </ol>
</ScrollArea>

Use it for

  • Panels and lists with a fixed height.

Props

PropTypeDefaultDescription
orientation'vertical''horizontal''both''vertical'Scrollbars to show.
aria-labelstring–Names the region.
viewportClassNamestring–Classes for the viewport.

Accessibility

  • The viewport is focusable so it scrolls with the keyboard; aria-label names it as a region.