Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This package is deprecated, for React projects please switch to: react-alert

Alerts

Put the <Alerts /> component somewhere sensible in your project. Use msg for text or translate for translations. type can be bootstrap colors. Optionally set delay (default = 10000ms). Set to 0 for endless.

import { Alerts, NewAlert } from "meteor/lef:alerts";

<Alerts />

NewAlert({ msg: JSON.stringify(error), type: "danger" })
NewAlert({ translate: "message", type: "success" })

Bootstrap colors

"primary", "secondary", "success", "danger", "warning", "info", "light", "dark"

About

No description or website provided.

Topics

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages