Skip to content

originrose/raven

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

raven

A tiny Clojurescript notification library based on Toastr

Clojars Project

Use

  • Include raven styles
    • (include-css "css/raven.css")
    • otherwise provide custom styles
  • Include animate.css if you want transition anitmations
    • (include-css "css/animate.min.css")
  • Mount notifications component in page
(require '[raven.notify :as notify])

(defn current-page
  []
  [:div.page-wrapper
    [(session/get :current-page)]
    [notify/notifications]])
  • Post messages
;; Info
(notify/notify "Did you know..." :type :info)

;; Success with a 500ms delay
(notify/notify "Success!" :type :success :delay 500)

;; Errors
(notify/notify "Something has gone wrong..." :type :error)

About

A tiny Clojurescript notification library based on Toastr

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published