re-antd is a ClojureScript library wrapper of Ant Design React components for Reagent.
re-antd is a fork from Antizer, and re-antd tries to be compatible with shadow-cljs and keep up with antd updates.
Date | Version |
---|---|
2019.06.23 | 3.19.0 |
Mention (Deprecated):
To use re-antd, add the following to deps:
[re-antd "${re-antd_version}"]
It is also necessary to include the relevant Ant Design CSS stylesheet in your HTML page. There are two ways that the CSS files can be included:
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/antd/${antd_version}/antd.min.css">
where ${antd_version}
must be the same antd library version as the one that Antizer is being linked to.
You can also follow the instructions for customization with LESS here.
For Reagent:
(require '[re-antd :as antd])
(require '[reagent.core :as r])
(defn click-me []
[antd/button {:on-click #(ant/message-info "Hello Reagent!")} "Click me"])
(defn init! []
(r/render [click-me] (.-body js/document)))
Thanks to Antizer.
Thanks to Ant Design, Reagent, and of course ClojureScript, without which this project would not be possible.
Can you improve this documentation? These fine people already did:
Michael Lim, Xiang-Bo Mao & 田三哥Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close