1.1.4 • Published 2 years ago

@code_monk/falert v1.1.4

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

Falert

Falert is a Funky Alert. It's fun and weird. It uses CSS transforms to give the illusion that it's floating above the page. It can be used to provide user feedback in a colourful and irreverant way. UI elements like this are sometimes called Toast.

Installing

If you're using a bundler:

$ npm install @code_monk/falert

And then in your application code:

import {Falert} from "@code_monk/falert";

new Falert("Info", "Some information for you", "notice");

Or simply import using a URL:

import {Falert} from 'https://unpkg.com/@code_monk/falert@latest/dist/es2022/falert.js';

new Falert("Cool!", "Using ES6 modules is fun", "warning");

Usage

The API is: new Falert(<heading>, <message>, <optional type>) where <optional type> is one of "fatal", "warning", or "notice". Notice is the default.

Simply click on the falert to close it.

If multiple falerts are launched, the newer one will try to launch slightly lower so that everything is still visible.

Check out the demo to see it in action.

1.1.1

2 years ago

1.1.0

2 years ago

1.1.4

2 years ago

1.1.2

2 years ago

1.0.20

2 years ago

1.0.21

2 years ago

1.0.19

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago