Skip to content

ScrollArea

Augments native scroll functionality for custom, cross-browser styling.

Jokester began sneaking into the castle in the middle of the night and leaving jokes all over the place: under the king's pillow, in his soup, even in the royal toilet. The king was furious, but he couldn't seem to stop Jokester. And then, one day, the people of the kingdom discovered that the jokes left by Jokester were so funny that they couldn't help but laugh. And once they started laughing, they couldn't stop.

And then, one day, the people of the kingdom discovered that the jokes left by Jokester were so funny that they couldn't help but laugh. And once they started laughing, they couldn't stop. The king was left to rule a kingdom of people who were always laughing, and he didn't know whether to be happy or furious.

The king was left to rule a kingdom of people who were always laughing, and he didn't know whether to be happy or furious. The king was furious, but he couldn't seem to stop Jokester.

Examples

Horizontal

Add a <ScrollBar Orientation="Orientation.Horizontal" /> inside ScrollArea to enable horizontal scrolling.

Ornella Binni
Photo by Ornella Binni
Tom Byrom
Photo by Tom Byrom
Vladimir Malyavko
Photo by Vladimir Malyavko
Ales Krivec
Photo by Ales Krivec
Sergey Zolkin
Photo by Sergey Zolkin

Always Visible

Use Type="ScrollAreaType.Always" to keep the scrollbar permanently visible.

Jokester began sneaking into the castle in the middle of the night and leaving jokes all over the place: under the king's pillow, in his soup, even in the royal toilet. The king was furious, but he couldn't seem to stop Jokester. And then, one day, the people of the kingdom discovered that the jokes left by Jokester were so funny that they couldn't help but laugh.

And once they started laughing, they couldn't stop. The king was left to rule a kingdom of people who were always laughing, and he didn't know whether to be happy or furious.

Auto

Use Type="ScrollAreaType.Auto" to show the scrollbar only when content overflows.

↑ Fits — no scrollbar ↑ Overflows — scrollbar shown

Short content.

This content is tall enough to overflow the container and trigger the scrollbar to appear automatically without any hover needed.

Dynamic configuration

Cycle through Hover, Scroll, Auto, and Always without remounting. Conditional horizontal scrollbar registration refreshes the same instance.

Change the policy and horizontal overflow without remounting this ScrollArea.
An unhandled error has occurred. Reload 🗙

    Rejoining the server...

    Rejoin failed... trying again in seconds.

    Failed to rejoin.
    Please retry or reload the page.

    The session has been paused by the server.

    Failed to resume the session.
    Please reload the page.