2016-08-08 10:32:22 +08:00
---
order: 0
title: Ant Design of React
---
2017-03-28 00:25:29 +08:00
Following the Ant Design specification, we developed a React UI library `antd` that contains a set of high quality components and demos for building rich, interactive user interfaces.
2016-08-08 10:32:22 +08:00
< div class = "pic-plus" >
2019-12-23 16:02:09 +08:00
< img width = "150" src = "https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg" / >
2016-08-08 10:32:22 +08:00
< span > +< / span >
2019-12-23 16:02:09 +08:00
< img width = "160" src = "https://gw.alipayobjects.com/zos/antfincdn/aPkFc8Sj7n/method-draw-image.svg" / >
2016-08-08 10:32:22 +08:00
< / div >
< style >
.pic-plus > * {
2017-08-04 17:58:32 +08:00
display: inline-block !important;
2016-08-08 10:32:22 +08:00
vertical-align: middle;
}
.pic-plus span {
margin: 0 20px;
2020-10-25 16:51:09 +08:00
color: #aaa ;
font-size: 30px;
2016-08-08 10:32:22 +08:00
}
< / style >
---
2019-12-16 22:42:08 +08:00
## ✨ Features
- 🌈 Enterprise-class UI designed for web applications.
- 📦 A set of high-quality React components out of the box.
- 🛡 Written in TypeScript with predictable static types.
2019-12-25 12:48:49 +08:00
- ⚙️ Whole package of design resources and development tools.
2019-12-16 22:42:08 +08:00
- 🌍 Internationalization support for dozens of languages.
- 🎨 Powerful theme customization in every detail.
2016-08-08 10:32:22 +08:00
2017-03-13 15:55:21 +08:00
## Environment Support
2017-01-12 17:57:04 +08:00
2020-05-15 17:18:55 +08:00
- Modern browsers and Internet Explorer 11 (with [polyfills ](https://ant.design/docs/react/getting-started#Compatibility ))
2019-05-07 14:57:32 +08:00
- Server-side Rendering
2020-02-20 21:11:15 +08:00
- [Electron ](https://www.electronjs.org/ )
2017-01-12 17:57:04 +08:00
2020-05-15 17:18:55 +08:00
| [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt="IE / Edge" width="24px" height="24px" /> ](http://godban.github.io/browsers-support-badges/ )</ br > IE / Edge | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" /> ](http://godban.github.io/browsers-support-badges/ )</ br > Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" /> ](http://godban.github.io/browsers-support-badges/ )</ br > Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" /> ](http://godban.github.io/browsers-support-badges/ )</ br > Safari | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/opera/opera_48x48.png" alt="Opera" width="24px" height="24px" /> ](http://godban.github.io/browsers-support-badges/ )</ br > Opera | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/electron/electron_48x48.png" alt="Electron" width="24px" height="24px" /> ](http://godban.github.io/browsers-support-badges/ )</ br > Electron |
| --- | --- | --- | --- | --- | --- |
| IE11, Edge | last 2 versions | last 2 versions | last 2 versions | last 2 versions | last 2 versions |
Polyfills are needed for IE browsers. We recommend [@babel/preset-env ](https://babeljs.io/docs/en/babel-preset-env ) for it. You can set `targets` config if you are using [umi ](http://umijs.org/ ).
2020-10-25 16:51:09 +08:00
> We drop support of IE8 after `antd@2.0`,
> We drop support of React 15 and IE9/10 after `antd@4.0`,
2020-05-15 17:18:55 +08:00
2017-01-12 17:57:04 +08:00
## Version
- Stable: [![npm package ](https://img.shields.io/npm/v/antd.svg?style=flat-square )](https://www.npmjs.org/package/antd)
2017-03-28 00:25:29 +08:00
You can subscribe to this feed for new version notifications: https://github.com/ant-design/ant-design/releases.atom
2017-01-12 17:57:04 +08:00
2016-08-08 10:32:22 +08:00
## Installation
2017-03-02 11:24:44 +08:00
### Using npm or yarn
2017-01-12 17:57:04 +08:00
2019-02-06 20:51:46 +08:00
**We recommend using npm or yarn to install**, it not only makes development easier, but also allow you to take advantage of the rich ecosystem of Javascript packages and tooling.
2017-01-12 17:57:04 +08:00
2016-08-08 10:32:22 +08:00
```bash
2019-02-20 03:01:49 +08:00
$ npm install antd
2016-08-08 10:32:22 +08:00
```
2017-01-12 17:57:04 +08:00
```bash
2017-03-02 11:24:44 +08:00
$ yarn add antd
2017-01-12 17:57:04 +08:00
```
2019-02-06 20:51:46 +08:00
If you are in a bad network environment, you can try other registries and tools like [cnpm ](https://github.com/cnpm/cnpm ).
2017-03-02 11:24:44 +08:00
2017-01-12 17:57:04 +08:00
### Import in Browser
2017-03-28 00:25:29 +08:00
Add `script` and `link` tags in your browser and use the global variable `antd` .
2017-01-12 17:57:04 +08:00
2018-09-11 14:15:48 +08:00
We provide `antd.js` `antd.css` and `antd.min.js` `antd.min.css` under `antd/dist` in antd's npm package. You can also download these files directly from [![CDNJS ](https://img.shields.io/cdnjs/v/antd.svg?style=flat-square )](https://cdnjs.com/libraries/antd), [![ ](https://data.jsdelivr.com/v1/package/npm/antd/badge )](https://www.jsdelivr.com/package/npm/antd) or [unpkg ](https://unpkg.com/antd/dist ).
2017-01-12 17:57:04 +08:00
2017-10-06 16:08:03 +08:00
> **We strongly discourage loading the entire files** this will add bloat to your application and make it more difficult to receive bugfixes and updates. Antd is intended to be used in conjunction with a build tool, such as [webpack](https://webpack.github.io/), which will make it easy to import only the parts of antd that you are using.
2017-01-12 17:57:04 +08:00
2020-04-06 13:05:43 +08:00
> Note: you should import react/react-dom/moment before using antd.js.
2017-12-26 11:53:03 +08:00
2016-10-13 12:27:29 +08:00
## Usage
2016-08-08 10:32:22 +08:00
```jsx
import { DatePicker } from 'antd';
2020-04-24 10:40:23 +08:00
2016-08-08 10:32:22 +08:00
ReactDOM.render(< DatePicker / > , mountNode);
```
2017-03-28 00:25:29 +08:00
And import stylesheets manually:
2016-08-08 10:32:22 +08:00
```jsx
2019-05-07 14:57:32 +08:00
import 'antd/dist/antd.css'; // or 'antd/dist/antd.less'
2016-08-08 10:32:22 +08:00
```
2016-10-13 12:27:29 +08:00
### Use modularized antd
2020-05-15 17:18:55 +08:00
`antd` supports ES modules tree shaking by default for JS part.
2016-08-08 10:32:22 +08:00
2017-03-13 15:49:15 +08:00
### TypeScript
2020-08-20 08:56:08 +08:00
`antd` provides a built-in ts definition, don't install `@types/antd` .
2017-03-12 15:20:25 +08:00
## Links
2016-08-08 10:32:22 +08:00
2020-05-04 13:12:42 +08:00
- [Home page ](/ )
2020-05-31 11:48:34 +08:00
- [Components ](/components/overview )
2019-07-01 11:05:17 +08:00
- [Ant Design Pro ](https://pro.ant.design/ )
2020-05-30 14:55:41 +08:00
- [Ant Design Charts ](https://charts.ant.design )
2016-12-12 20:44:40 +08:00
- [Change Log ](/changelog )
2017-03-12 15:20:25 +08:00
- [rc-components ](http://react-component.github.io/ )
2016-11-14 11:08:26 +08:00
- [Mobile UI ](http://mobile.ant.design )
2019-07-01 11:05:17 +08:00
- [Ant Design Icons ](https://github.com/ant-design/ant-design-icons )
- [Ant Design Colors ](https://github.com/ant-design/ant-design-colors )
- [Ant Design Pro Layout ](https://github.com/ant-design/ant-design-pro-layout )
- [Ant Design Pro Blocks ](https://github.com/ant-design/pro-blocks )
- [Dark Theme ](https://github.com/ant-design/ant-design-dark-theme )
- [Landing Pages ](https://landing.ant.design )
2016-11-14 11:08:26 +08:00
- [Motion ](https://motion.ant.design )
2019-07-01 11:05:17 +08:00
- [Scaffold Market ](http://scaffold.ant.design )
2016-11-14 11:08:26 +08:00
- [Developer Instruction ](https://github.com/ant-design/ant-design/wiki/Development )
- [Versioning Release Note ](https://github.com/ant-design/ant-design/wiki/%E8%BD%AE%E5%80%BC%E8%A7%84%E5%88%99%E5%92%8C%E7%89%88%E6%9C%AC%E5%8F%91%E5%B8%83%E6%B5%81%E7%A8%8B )
2018-09-16 15:34:58 +08:00
- [FAQ ](/docs/react/faq )
2019-07-01 11:05:17 +08:00
- [CodeSandbox Template ](https://u.ant.design/codesandbox-repro ) for bug reports
2016-11-14 11:08:26 +08:00
- [Awesome Ant Design ](https://github.com/websemantics/awesome-ant-design )
2016-12-12 20:44:40 +08:00
- [Customize Theme ](/docs/react/customize-theme )
2020-03-25 18:01:24 +08:00
- [How to Apply for Being A Collaborator ](https://github.com/ant-design/ant-design/wiki/Collaborators#how-to-apply-for-being-a-collaborator )
2016-08-08 10:32:22 +08:00
2017-03-28 00:25:29 +08:00
## Companies using antd
2016-08-08 10:32:22 +08:00
2017-11-29 20:27:52 +08:00
- [Ant Financial ](http://www.antfin.com/index.htm?locale=en_US )
2016-10-07 21:10:05 +08:00
- [Alibaba ](http://www.alibaba.com/ )
2017-10-12 14:09:17 +08:00
- [Tencent ](http://www.tencent.com )
- [Baidu ](http://www.baidu.com )
2016-10-07 21:10:05 +08:00
- [Koubei ](http://www.koubei.com/ )
- [Meituan ](http://www.meituan.com )
- [Didi ](http://www.xiaojukeji.com/ )
2017-10-12 14:09:17 +08:00
- [Eleme ](https://www.ele.me/ )
2016-08-08 10:32:22 +08:00
2017-03-28 00:25:29 +08:00
> If your company or product uses Ant Design, let us know [here](https://github.com/ant-design/ant-design/issues/477)!
2016-08-08 10:32:22 +08:00
## Contributing
Please read our [CONTRIBUTING.md ](https://github.com/ant-design/ant-design/blob/master/.github/CONTRIBUTING.md ) first.
2017-04-02 14:03:42 +08:00
If you'd like to help us improve antd, just create a [Pull Request ](https://github.com/ant-design/ant-design/pulls ). Feel free to report bugs and issues [here ](http://new-issue.ant.design/ ).
2016-08-08 10:32:22 +08:00
2019-05-07 14:57:32 +08:00
> If you're new to posting issues, we ask that you read [_How To Ask Questions The Smart Way_](http://www.catb.org/~esr/faqs/smart-questions.html) and [How to Ask a Question in Open Source Community](https://github.com/seajs/seajs/issues/545) and [How to Report Bugs Effectively](http://www.chiark.greenend.org.uk/~sgtatham/bugs.html) prior to posting. Well written bug reports help us help you!
2016-10-19 12:19:30 +08:00
## Need Help?
2017-07-31 21:49:57 +08:00
For questions on how to use antd, please post questions to [<img alt="Stack Overflow" src="https://cdn.sstatic.net/Sites/stackoverflow/company/img/logos/so/so-logo.svg?v=2bb144720a66" width="140" /> ](http://stackoverflow.com/questions/tagged/antd ) using the `antd` tag. If you're not finding what you need on stackoverflow, you can find us on [![Gitter ](https://badges.gitter.im/ant-design/ant-design-english.svg )](https://gitter.im/ant-design/ant-design-english?utm_source=badge& utm_medium=badge& utm_campaign=pr-badge) as well.
2016-10-19 12:19:30 +08:00
2017-03-28 00:25:29 +08:00
As always, we encourage experienced users to help those who are not familiar with `antd` !