Open this example in the interactive library
Source code
<div class="demo w-fit px-4 py-2">Width that follows content</div>
Width that follows content with Tailwind CSS 4 utilities. The preview uses precompiled styles.
Open this example in the interactive library
<div class="demo w-fit px-4 py-2">Width that follows content</div>