Layout
v1.0.0Added in 1.0.0
A scroll container with slim custom scrollbars, edge fades that ease out at the ends, snap scrolling and prev / next buttons for rails.
Scroll with a wheel, a trackpad or a finger: momentum stays native, the content fades out toward every edge that has more to see, and each fade melts away as you reach the end. With a mouse the slim bars appear on hover and the thumb can be dragged or the track clicked to jump. On a phone the bars show while you scroll and are only indicators, like on iOS and Android, so a swipe near the edge always moves the content. Tab to the area to scroll it with the arrows, Page Up / Down, Home / End and Space; a focus ring and the bars show while it has focus, and a focused rail takes Home, End, Page keys and Space sideways too. Rails can snap card by card and, with a mouse, show round prev / next buttons on the sides with more content; they fade out at the ends, and one that hides under keyboard focus hands focus to the rail.
npx wingo-ui@latest add scroll-areaPro item: the CLI needs a Pro account. See plans
Emma CarterCube Aim bike · $450Scroll the conversation or send a message: the fades ease out at both ends
type="hover" · hides after 600ms · step 0.8