Intrinsic-width utilities allow a chip to follow its label. Long labels still need a wrapping or overflow policy.
Worked example
<div class="demo w-fit px-4 py-2">Width that follows content</div>Implementation notes
The wrapping behaviour of neighbouring flex items can change how much space a chip receives. Inspect the chip in its real parent layout.
Try it yourself
Test the same chip with a single character and a long sentence.
Open the Tailwind CSS example →Editorial date January 23, 2026 · Published December 6, 2026