Alert

This is a library for creating good-looking, high-functioning alerts and notifications.

Click this paragraph to trigger an alert.

Click this one to trigger an alert with two buttons.

Click this one to trigger an alert with three buttons.

You can specify the number, display text, and values associated with each button by passing Alert an array of tiny objects.

You can also pass the name of a callback function. If you do, Alert will send to that function the value of the button the user clicks.

To see this in action, open your browser's console and click here.

And there's optional console logging. To see that, click here.

Alerts can also be dismissed by clicking the screen containing the alert or by hitting the escape key. You can specify the value to pass to the callback by including esc:true in one of the opts.

So this alert will assume you're lying unless you tell it otherwise.

Alerts are styled with CSS so they can have any transitions or contexts you specify.

Hi.

Hi.

Hi.

You

can

pile

alerts.

None here.

You can customize it in all kinds of sweet ways.

For more information, read the documentation.