1 GitHub star = 1 new component. We’re at 0 stars — help us unlock the next one.
Full viewport backdrop blur scrim.
Copy and paste this code into your Astro page:
--- import { BackdropMask } from 'astro-component-kit'; --- <BackdropBlurMask>Content</BackdropBlurMask>
If you are not using the npm package, create a new file and paste the following code: src/components/lib/BackdropMask.astro:
src/components/lib/BackdropMask.astro
--- --- <div class="mask"></div> <style> .mask { position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); z-index: 500; pointer-events: none; } </style>
BackdropMask.astro