@fylgja/dialog

1.5.0 • Public • Published

Fylgja - Dialog

NPM version license

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";
// Or via PostCSS import
@import "@fylgja/dialog";

@layer support

If you need support for @layer, use the following import;

@use "@fylgja/dialog" with ($dialog-layer: "components");
// Or via native CSS import, also supported by PostCSS import
@import "@fylgja/dialog" layer("components");

How to use

For more information see the dialog docs on the Fylgja.dev.

Package Sidebar

Install

npm i @fylgja/dialog

Homepage

fylgja.dev/

Weekly Downloads

99

Version

1.5.0

License

MIT

Unpacked Size

14.3 kB

Total Files

10

Last publish

Collaborators

  • allrude
  • grimlink