1.5.0 • Published 2 years ago

@fylgja/dialog v1.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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.

1.5.0

2 years ago

1.4.0

2 years ago

1.3.2

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.0

3 years ago

1.2.1

3 years ago

1.1.0

3 years ago

1.0.1

4 years ago

1.0.0

4 years ago