Skip to content

Scroll Area

Native scrolling with custom scrollbars you can style. The content scrolls as in any scrolling element - keyboard, wheel, touch, screen readers, find in page - while thumbs, overflow hooks and fade variables are kept up to date in the browser, with no .NET call per scroll.

Styled with CSS Tailwind

Vertical list

BitBhScrollAreaViewport is the native scroll container, its own scrollbars hidden; BitBhScrollAreaScrollbar + BitBhScrollAreaThumb draw the custom one. With the default Type="Hover" the scrollbar shows while the pointer is over the area or the content scrolls (data-state="visible"), and hides ScrollHideDelay (600 ms) after the pointer leaves - fade it with [data-state="hidden"]. Drag the thumb, press the track to page, or use the wheel over it. The list has nothing focusable, so the viewport itself becomes a tab stop while it overflows: focus it and scroll with the arrow keys. Its role="region" and aria-label say what it is.

Tags

v1.2.0-beta.50
v1.2.0-beta.49
v1.2.0-beta.48
v1.2.0-beta.47
v1.2.0-beta.46
v1.2.0-beta.45
v1.2.0-beta.44
v1.2.0-beta.43
v1.2.0-beta.42
v1.2.0-beta.41
v1.2.0-beta.40
v1.2.0-beta.39
v1.2.0-beta.38
v1.2.0-beta.37
v1.2.0-beta.36
v1.2.0-beta.35
v1.2.0-beta.34
v1.2.0-beta.33
v1.2.0-beta.32
v1.2.0-beta.31
v1.2.0-beta.30
v1.2.0-beta.29
v1.2.0-beta.28
v1.2.0-beta.27
v1.2.0-beta.26
v1.2.0-beta.25
v1.2.0-beta.24
v1.2.0-beta.23
v1.2.0-beta.22
v1.2.0-beta.21
v1.2.0-beta.20
v1.2.0-beta.19
v1.2.0-beta.18
v1.2.0-beta.17
v1.2.0-beta.16
v1.2.0-beta.15
v1.2.0-beta.14
v1.2.0-beta.13
v1.2.0-beta.12
v1.2.0-beta.11
v1.2.0-beta.10
v1.2.0-beta.9
v1.2.0-beta.8
v1.2.0-beta.7
v1.2.0-beta.6
v1.2.0-beta.5
v1.2.0-beta.4
v1.2.0-beta.3
v1.2.0-beta.2
v1.2.0-beta.1

Both axes and the corner

One scrollbar per axis: Orientation="BitBhOrientation.Horizontal" lays a scrollbar along the bottom. Type="Always" keeps both visible, overflow or not. Where they meet, BitBhScrollAreaCorner fills the square - sized from the scrollbars through --bit-bh-scroll-area-corner-width / -height, which the scrollbars also stop short of. Thumb lengths follow the visible fraction (--bit-bh-scroll-area-thumb-height / -width, at least 18px).

[12:00:01] info  step 01/40  Compiling src/Components/Feature01/Feature01View.razor -> obj/Release/net11.0/Feature01View.g.cs
[12:00:02] info  step 02/40  Compiling src/Components/Feature02/Feature02View.razor -> obj/Release/net11.0/Feature02View.g.cs
[12:00:03] info  step 03/40  Compiling src/Components/Feature03/Feature03View.razor -> obj/Release/net11.0/Feature03View.g.cs
[12:00:04] info  step 04/40  Compiling src/Components/Feature04/Feature04View.razor -> obj/Release/net11.0/Feature04View.g.cs
[12:00:05] info  step 05/40  Compiling src/Components/Feature05/Feature05View.razor -> obj/Release/net11.0/Feature05View.g.cs
[12:00:06] info  step 06/40  Compiling src/Components/Feature06/Feature06View.razor -> obj/Release/net11.0/Feature06View.g.cs
[12:00:07] info  step 07/40  Compiling src/Components/Feature07/Feature07View.razor -> obj/Release/net11.0/Feature07View.g.cs
[12:00:08] info  step 08/40  Compiling src/Components/Feature08/Feature08View.razor -> obj/Release/net11.0/Feature08View.g.cs
[12:00:09] info  step 09/40  Compiling src/Components/Feature09/Feature09View.razor -> obj/Release/net11.0/Feature09View.g.cs
[12:00:10] info  step 10/40  Compiling src/Components/Feature10/Feature10View.razor -> obj/Release/net11.0/Feature10View.g.cs
[12:00:11] info  step 11/40  Compiling src/Components/Feature11/Feature11View.razor -> obj/Release/net11.0/Feature11View.g.cs
[12:00:12] info  step 12/40  Compiling src/Components/Feature12/Feature12View.razor -> obj/Release/net11.0/Feature12View.g.cs
[12:00:13] info  step 13/40  Compiling src/Components/Feature13/Feature13View.razor -> obj/Release/net11.0/Feature13View.g.cs
[12:00:14] info  step 14/40  Compiling src/Components/Feature14/Feature14View.razor -> obj/Release/net11.0/Feature14View.g.cs
[12:00:15] info  step 15/40  Compiling src/Components/Feature15/Feature15View.razor -> obj/Release/net11.0/Feature15View.g.cs
[12:00:16] info  step 16/40  Compiling src/Components/Feature16/Feature16View.razor -> obj/Release/net11.0/Feature16View.g.cs
[12:00:17] info  step 17/40  Compiling src/Components/Feature17/Feature17View.razor -> obj/Release/net11.0/Feature17View.g.cs
[12:00:18] info  step 18/40  Compiling src/Components/Feature18/Feature18View.razor -> obj/Release/net11.0/Feature18View.g.cs
[12:00:19] info  step 19/40  Compiling src/Components/Feature19/Feature19View.razor -> obj/Release/net11.0/Feature19View.g.cs
[12:00:20] info  step 20/40  Compiling src/Components/Feature20/Feature20View.razor -> obj/Release/net11.0/Feature20View.g.cs
[12:00:21] info  step 21/40  Compiling src/Components/Feature21/Feature21View.razor -> obj/Release/net11.0/Feature21View.g.cs
[12:00:22] info  step 22/40  Compiling src/Components/Feature22/Feature22View.razor -> obj/Release/net11.0/Feature22View.g.cs
[12:00:23] info  step 23/40  Compiling src/Components/Feature23/Feature23View.razor -> obj/Release/net11.0/Feature23View.g.cs
[12:00:24] info  step 24/40  Compiling src/Components/Feature24/Feature24View.razor -> obj/Release/net11.0/Feature24View.g.cs
[12:00:25] info  step 25/40  Compiling src/Components/Feature25/Feature25View.razor -> obj/Release/net11.0/Feature25View.g.cs
[12:00:26] info  step 26/40  Compiling src/Components/Feature26/Feature26View.razor -> obj/Release/net11.0/Feature26View.g.cs
[12:00:27] info  step 27/40  Compiling src/Components/Feature27/Feature27View.razor -> obj/Release/net11.0/Feature27View.g.cs
[12:00:28] info  step 28/40  Compiling src/Components/Feature28/Feature28View.razor -> obj/Release/net11.0/Feature28View.g.cs
[12:00:29] info  step 29/40  Compiling src/Components/Feature29/Feature29View.razor -> obj/Release/net11.0/Feature29View.g.cs
[12:00:30] info  step 30/40  Compiling src/Components/Feature30/Feature30View.razor -> obj/Release/net11.0/Feature30View.g.cs
[12:00:31] info  step 31/40  Compiling src/Components/Feature31/Feature31View.razor -> obj/Release/net11.0/Feature31View.g.cs
[12:00:32] info  step 32/40  Compiling src/Components/Feature32/Feature32View.razor -> obj/Release/net11.0/Feature32View.g.cs
[12:00:33] info  step 33/40  Compiling src/Components/Feature33/Feature33View.razor -> obj/Release/net11.0/Feature33View.g.cs
[12:00:34] info  step 34/40  Compiling src/Components/Feature34/Feature34View.razor -> obj/Release/net11.0/Feature34View.g.cs
[12:00:35] info  step 35/40  Compiling src/Components/Feature35/Feature35View.razor -> obj/Release/net11.0/Feature35View.g.cs
[12:00:36] info  step 36/40  Compiling src/Components/Feature36/Feature36View.razor -> obj/Release/net11.0/Feature36View.g.cs
[12:00:37] info  step 37/40  Compiling src/Components/Feature37/Feature37View.razor -> obj/Release/net11.0/Feature37View.g.cs
[12:00:38] info  step 38/40  Compiling src/Components/Feature38/Feature38View.razor -> obj/Release/net11.0/Feature38View.g.cs
[12:00:39] info  step 39/40  Compiling src/Components/Feature39/Feature39View.razor -> obj/Release/net11.0/Feature39View.g.cs
[12:00:40] info  step 40/40  Compiling src/Components/Feature40/Feature40View.razor -> obj/Release/net11.0/Feature40View.g.cs

Fading edges, shown while scrolling

Type="Scroll" shows the scrollbar while the content scrolls (and while the pointer is on it), then hides it ScrollHideDelay later - 900 ms here. The root carries --bit-bh-scroll-area-overflow-y-start / -end: the pixels of content hidden past each edge. A mask that fades over min(2.5rem, …) of them fades an edge only where there is more to see, and no further than there is. data-overflow-y-start / -end (and data-scrolling, data-hovering) are there for selectors.

These terms govern your use of the service. By creating an account you agree to them, so please read them in full.

You are responsible for the content you upload and for keeping your password secret. Tell us at once about any unauthorised use of your account.

We may change the service at any time. When a change affects you, we will tell you in advance by email or in the product itself.

Paid plans renew automatically until cancelled. You can cancel at any time; the plan stays active until the end of the period you paid for.

We keep your data only as long as needed to provide the service, and you can export or delete it whenever you like.

If a part of these terms turns out to be unenforceable, the rest stays in effect. These terms are the whole agreement between us.

Focusable content, right to left

A row of filter chips scrolls sideways. The chips take the focus, so the viewport stays out of the tab order (the browser scrolls a focused chip into view). Dir="BitBhDirection.Rtl" (or a BitBhDirectionProvider) writes dir on the root: the content starts on the right, the thumb moves right to left and a vertical scrollbar would sit on the left. Type="Auto" shows the scrollbar whenever the content overflows.

Filters: none

An unhandled error has occurred. Reload 🗙