Fylgja - Dialog

The dialog combines 3 components in 1, it a modal by default,
and with a small change it's a offcanvas,
notification popup aka the snackbar.
This code is super tiny compared to other solutions,
and it's super flexible.
Use it to have a modal on desktop and offcanvas on mobile,
simply by changing a few CSS variables.
Installation
npm install @fylgja/dialog
Then include the component in to your code via;
@use "@fylgja/dialog";
@import "@fylgja/dialog";
@layer
support
If you need support for @layer
,
use the following import;
@use "@fylgja/dialog" with ($dialog-layer: "components");
@import "@fylgja/dialog" layer("components");
How to use
For more information see the dialog docs on the Fylgja.dev.