typography
overflow-wrap
Applies overflow-wrap, breaking a word only when it would otherwise overflow a bounded inline size, while ordinary text keeps its normal break points — ideal for a long URL, hash, or identifier in a narrow column.
import { overflowWrap } from "@sdxc/u/typography";Quick reference
Every documented call, beside the CSS it emits.
| Call | CSS |
|---|---|
u.overflowWrap() | css({ overflowWrap: "break-word" }) |
u.overflowWrap("anywhere") | css({ overflowWrap: "anywhere" }) |
Using a custom value
Every scale argument also takes a raw CSS value, which passes through untouched.
u.overflowWrap()Applying on a state
Wrap the call in a state utility to scope it to one selector.
u.hover(u.overflowWrap())Responsive design
Wrap the call in a container query to scope it to one width.
u.at("md", u.overflowWrap())Signature
u.overflowWrap(value?: OverflowWrapValue)