Text Utils

Open in
remove-text-box

Trims the leading and trailing half-leading above the cap height and below the alphabetic baseline, so text sits flush inside its box. Uses the CSS text-box property.

DefaultTrimmed
Reactbasic-example.tsx
<span className="text-4xl font-semibold leading-none remove-text-box">Trimmed</span>