Scroll text

One line of text that fades and scrolls where it doesn't fit, instead of an ellipsis.

Installation

Examples

Default

Use it for a name that may not fit, such as a layer's or a file's, except inside something clickable. It's the overflow-fade-x utility, which works on any row that may not fit, such as tabs or chips.

demo.tsx
Sky
Golden hour warmth, lifted shadows
Subject mask from the brush, feathered

Beside an action

In a row, it takes the room left, so an action beside it stays whole.

action.tsx
Subject mask from the brush, feathered

Anatomy

Each part's data-slot, which a theme styles, is beside it.