Overview
Antizer is a ClojureScript library that implements Ant Design React components for Reagent and Rum. Ant Design is an enterprise-class UI design language and React-based implementation that provides a set of high-quality React components out of the box. Antizer aims to make these components fully functional and production-ready for use in ClojureScript projects.
Features
- Enterprise-class UI design language for web applications
- High-quality React components
- Extensive API documentation and examples
Installation
To use Antizer, you need to add the following to your project.clj file:
For Reagent:
[antizer "0.3.3"]
[reagent "X.Y.Z"]
For Rum:
[antizer "0.3.3"]
[rum "X.Y.Z"]
You also need to include the relevant Ant Design CSS stylesheet in your HTML page. There are two ways to do this:
- Load the CSS stylesheet from an external CDN:
<link rel="stylesheet" href="https://cdn.example.com/antd/${antd_version}/antd.min.css">
- Load the CSS stylesheet from the classpath. Use the wrap-resource function from the Ring library:
(wrap-resource handler ["/cljsjs/antd/development/antd.inc.css"])
OR
(wrap-resource handler ["/cljsjs/antd/production/antd.min.inc.css"])
For a detailed example, you can refer to the antizer-demo repository on GitHub.
Summary
Antizer is a ClojureScript library that provides ClojureScript developers with access to the Ant Design React components. It allows developers to easily integrate these high-quality UI components into their Reagent and Rum projects. By following the installation instructions and including the necessary CSS stylesheet, developers can leverage the enterprise-class UI design language and extensive API documentation provided by Ant Design. With Antizer, ClojureScript developers can create professional and visually appealing web applications.