Open this example in the interactive library
Source code
<div class="demo border-2 border-dashed border-slate-500">
Use a dashed border
</div>
Use a dashed border with Tailwind CSS 4 utilities. The preview uses precompiled styles.
Open this example in the interactive library
<div class="demo border-2 border-dashed border-slate-500">
Use a dashed border
</div>