alpine for dropdown.
This commit is contained in:
@@ -2,10 +2,10 @@
|
||||
(:require [hiccup2.core :as hiccup]))
|
||||
|
||||
(defn modal- [params & children]
|
||||
[:div {:class (str "relative w-full max-h-full " (or (:modal-class params) " max-w-2xl "))}
|
||||
[:div {:class (str "relative w-full max-h-full " (or (:modal-class params) " max-w-2xl "))
|
||||
"@click.outside" "open=false"}
|
||||
(into [:div#modal-content]
|
||||
children)]
|
||||
)
|
||||
children)])
|
||||
|
||||
(defn modal-card- [params header content footer]
|
||||
[:div#modal-card params
|
||||
|
||||
Reference in New Issue
Block a user