Scroll
A scroll area with a custom, cross-browser styled scrollbar, built on Base UI Scroll Area.
Usage
For a simple scrollable region, use the all-in-one Scroll.Area:
import { Scroll } from "@smartacteam/ambient-web/scroll";<Scroll.Area className="h-72 w-48">{children}</Scroll.Area>For layouts that need to compose the viewport, content, and scrollbar separately (for example, a chat message list that also needs a corner or horizontal scrollbar), use the compound parts:
<Scroll.Root className="h-72 w-48">
<Scroll.Viewport>
<Scroll.Content>{children}</Scroll.Content>
</Scroll.Viewport>
<Scroll.Scrollbar />
<Scroll.Corner />
</Scroll.Root>