[cljsjs/antd "4.6.1-0"] ;; latest release
This JAR comes with deps.cljs
as used by the Foreign Libs feature
of the ClojureScript compiler. after adding the above dependency to your project
you can require the packaged library like so:
(ns application.core
(:require [cljsjs.antd]))
This package also supports :global-exports
:
(ns application.core
(:require [antd :as antd]))
You would need to include the antd
CSS file within your HTML file. The CSS files will be written to the following classpaths:
cljsjs/antd/development/antd.inc.css
cljsjs/antd/production/antd.min.inc.css
You can also follow instructions for customization with LESS here.
As of [cljsjs/antd "4.6.1-0"]
, the precompiled antd
includes locales.
Locales are present under the global antd
object, e.g.:
(.. js/window.antd -locales -en_US)
If using LocaleProvider
(deprecated), pass the result of the above expression as the
locale
prop.
- Ant-Man - Thin ClojureScript wrapper around Ant Design React components with Reagent