sdxc

Type to search, or start from one of these:

overflow

scrollbar-width

Requests a thin scrollbar that reserves its gutter up front, so layout stays put whether or not the scrollbar is showing.

import { thinScrollbar } from "@sdxc/u/overflow";

Quick reference

Every documented call, beside the CSS it emits.

CallCSS
u.thinScrollbar()css({ scrollbarWidth: "thin", scrollbarGutter: "stable" })

Using a custom value

Every scale argument also takes a raw CSS value, which passes through untouched.

u.thinScrollbar()

Applying on a state

Wrap the call in a state utility to scope it to one selector.

u.hover(u.thinScrollbar())

Responsive design

Wrap the call in a container query to scope it to one width.

u.at("md", u.thinScrollbar())

Signature

u.thinScrollbar()