Open this example in the interactive library
Source code
<div>
<button popovertarget="swatch">Inspect swatch</button>
<div class="demo backdrop:bg-black/40 border p-4" popover id="swatch">
Copper on ivory
</div>
</div>
Backdrop for open popover with Tailwind CSS 4 utilities. The preview uses precompiled styles.
Open this example in the interactive library
<div>
<button popovertarget="swatch">Inspect swatch</button>
<div class="demo backdrop:bg-black/40 border p-4" popover id="swatch">
Copper on ivory
</div>
</div>