diff --git a/src/main/cljs/dda/c4k_common/browser.cljs b/src/main/cljs/dda/c4k_common/browser.cljs index 8e735c8..9c7b34f 100644 --- a/src/main/cljs/dda/c4k_common/browser.cljs +++ b/src/main/cljs/dda/c4k_common/browser.cljs @@ -170,4 +170,18 @@ {:type :element, :attrs {:class "needs-validation", :id "form"}, :tag :form, - :content []}) \ No newline at end of file + :content []}) + +(defn-spec generate-group map? + [name string? + content any?] + [{:type :element + :tag :div + :attrs {:class "rounded border border-3 m-3 p-2"} + :content [{:type :element + :tag :b + :attrs {:style "z-index: 1; position: relative; top: -1.3rem;"} + :content name} + {:type :element + :tag :fieldset + :content content}]}])