Open this example in the interactive library
Source code
<div class="frame drop-shadow-[0_4px_4px_#33415570]">
<div
class="demo w-24 h-16 [clip-path:polygon(50%_0,100%_100%,0_100%)]"
aria-hidden="true"
></div>
</div>
Limit a drop shadow to the shape with Tailwind CSS 4 utilities. The preview uses precompiled styles.
Open this example in the interactive library
<div class="frame drop-shadow-[0_4px_4px_#33415570]">
<div
class="demo w-24 h-16 [clip-path:polygon(50%_0,100%_100%,0_100%)]"
aria-hidden="true"
></div>
</div>