Utilities

What every control shares, and patterns too fiddly to write twice.

What every control shares, and patterns too fiddly to write twice. Use them on your own controls too.

focus-ring
On every control: an outline with a gap, on keyboard focus.
dim-disabled
On every control: fades it while disabled.
popup-motion
On every popup: grows from its trigger as it fades in.
segmented
A strip of controls a size smaller than a Button; pair it with material-field.
overflow-fade-x
A row that may not fit: scrolls, and fades where more lies that way.
overflow-fade-y
A column that may not fit, the same way.
overflow-fade-x-bottom
Both, fading only the bottom, for content whose top stays put, such as a table's head.
shimmer
Text, icons, or blocks while work is pending.
backdrop
The shade behind a dialog, which a theme can draw otherwise, such as with a blur.

Shimmer

A bright band sweeps across text, icons, or placeholder blocks while work is pending.

shimmer.tsx
Finding a source for the patch…

Overflow fade

A row that may not fit scrolls, and fades where more lies that way, instead of cutting off. overflow-fade-y does the same for a column.

overflow-fade.tsx