alpine for dropdown.

This commit is contained in:
2023-10-20 17:52:15 -07:00
parent 8684a68471
commit ffcc43ba5e
8 changed files with 215 additions and 49 deletions

View File

@@ -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