Open this example in the interactive library
Source code
<style>
.demo {
box-shadow: inset 0 2px 8px #0f172a40;
}
</style>
<div class="demo">Apply an inset box shadow</div>
Apply an inset box shadow with native CSS. The preview includes a small shared demo stylesheet.
Open this example in the interactive library
<style>
.demo {
box-shadow: inset 0 2px 8px #0f172a40;
}
</style>
<div class="demo">Apply an inset box shadow</div>