An enterprise-class UI design language and React UI library
Go to file
Dunqing 6759887c44
chore: migrate to vitest (#42506)
* chore: migrate to vitest

* chore: update ci

* fix: test correctly

* test: support puppeteer

* chore: update coverage

* chore: update include/exclude

* chore: update config

* test: update incorrect tests

* chore: update script

* chore: update

* fix: should close browser at the ended

* chore: improve

* fix: test cause tsc error

* fix: eslint error

* chore: exclude correctly

* test: update snap and fix some tests

* chore: update test config

* fix: countup.js

* fix: incorrect test

* chore: update reference

* test: update

* fix: countup.js

* fix: timeout

* chore: update site test

* fix: fixed countup version

* chore: remove unsed code

* test: update

* test: update demo timeout

* test: update timeout

* chore: update image test

* chore: update threads

* fix: image/svg+xml test failed

* chore: limits threads

* test: update test coverage include

* chore: remove jest files

* chore: rename jest to vi

* chore: update document

* chore: fix missing @types/jsdom

* chore: update coverage

* chore: update snap

* fix:watermark test cases are incorrect

* feat: update ignore comment

* test: fix test case

* test: reset body scrollTop

* test: clean up

* test: use vi

* test: update snapshot

* test: update snapshot

* test: fix dropdown test failed

* fix: toHaveStyle cause test fail

* test: improve test case

* test: fix

* fix: color failed, refer to https://github.com/jsdom/jsdom/pull/3560

* test: fix

* test: fix

* test: fix circular import

* test: revert

* ci: coverage failed

* test: fix c8 ignore comment

* chore: incorrect config

* chore: fix ignore ci

* test: revert svg+xml

* test: fix realTimers

* feat: rc-trigger should be remove

* test: fix some failed test

* chore: remove unused deps and configure eslint-plugin-vitest

* test: update snap

* chore: remove jest

* test: fix lint error

---------

Co-authored-by: 二货机器人 <smith3816@gmail.com>
Co-authored-by: afc163 <afc163@gmail.com>
2023-06-07 11:54:50 +08:00
__mocks__ chore: migrate to vitest (#42506) 2023-06-07 11:54:50 +08:00
.circleci chore: Update config.yml (#42823) 2023-06-05 13:03:43 +08:00
.codesandbox docs: upgrade codesandbox to react 18 (#36951) 2022-08-08 17:52:39 +08:00
.dumi Merge branch 'feature' into master-merge-feature 2023-06-06 16:31:22 +08:00
.github chore: migrate to vitest (#42506) 2023-06-07 11:54:50 +08:00
.husky chore: remove redundant .gitignore file (#42336) 2023-05-14 12:51:18 +08:00
components chore: migrate to vitest (#42506) 2023-06-07 11:54:50 +08:00
docs chore: migrate to vitest (#42506) 2023-06-07 11:54:50 +08:00
scripts refactor: add useSize replace React.useContext (#42282) 2023-05-12 14:53:47 +08:00
tests chore: migrate to vitest (#42506) 2023-06-07 11:54:50 +08:00
typings chore: migrate to vitest (#42506) 2023-06-07 11:54:50 +08:00
.antd-tools.config.js 📚 docs: add token meta info to token system model (#39101) 2022-11-30 11:48:47 +08:00
.depslintrc.js refactor(list): rewrite with hook (#23542) 2020-04-26 21:23:25 +08:00
.dockerignore test: use azure deploy ui test report site (#24327) 2020-05-25 17:40:57 +08:00
.dumirc.ts Revert "chore: workaround for hmr speed (#42357)" (#42374) 2023-05-15 21:23:13 +08:00
.editorconfig 🎨 Add emoji in commit message 2018-11-12 14:18:16 +08:00
.eslintignore chore: migrate to vitest (#42506) 2023-06-07 11:54:50 +08:00
.eslintrc.js chore: migrate to vitest (#42506) 2023-06-07 11:54:50 +08:00
.gitignore chore: migrate to vitest (#42506) 2023-06-07 11:54:50 +08:00
.gitpod.yml Added Gitpod support (#14307) 2019-02-08 10:01:01 +08:00
.npmignore chore: 📦 Optimize npm package size (#23698) 2020-04-28 14:11:43 +08:00
.npmrc chore: specify npm as the package manager (#42611) 2023-05-25 19:53:56 +08:00
.prettierignore chore: remove useless scripts (#38622) 2022-11-17 16:41:05 +08:00
.prettierrc fix: Site link auto switch by locale (#42381) 2023-05-16 08:42:18 +08:00
.remarkrc.js chore: add remark lint (#23457) 2020-04-21 23:40:41 +08:00
.stylelintrc.js chore: stylelint plugin upgrade (#40883) 2023-02-23 12:01:25 +08:00
.surgeignore docs: v5 site upgrade (#38328) 2022-11-09 12:28:04 +08:00
AUTHORS.txt chore: Migrate CJS to ESM (#42055) 2023-04-28 15:26:09 +08:00
CHANGELOG.en-US.md docs: changelog 5.6.0 (#42866) 2023-06-06 21:49:04 +08:00
CHANGELOG.zh-CN.md docs: changelog 5.6.0 (#42866) 2023-06-06 21:49:04 +08:00
CNAME chore: update CNAME 2022-11-18 15:04:45 +08:00
CODE_OF_CONDUCT.md chore: add remark lint (#23457) 2020-04-21 23:40:41 +08:00
index-style-only.js chore: remo format and remove prettierrc arrowParens (#38722) 2022-11-19 13:47:33 +08:00
index-with-locales.js chore: Remove locale-provider (#41289) 2023-03-21 13:08:43 +08:00
index.js Add variable.less to support css variable (#31496) 2021-09-01 10:56:50 +08:00
LICENSE 🌱 Upgrade LICENSE 2018-11-28 12:16:59 +08:00
package.json chore: migrate to vitest (#42506) 2023-06-07 11:54:50 +08:00
README-ar_EG.md docs: update README-ar_EG.md (#41967) 2023-04-24 16:36:03 +08:00
README-ja_JP.md docs: add Arabic documentation (#41963) 2023-04-24 10:28:46 +08:00
README-pt_BR.md docs: add Arabic documentation (#41963) 2023-04-24 10:28:46 +08:00
README-sp_MX.md docs: add Arabic documentation (#41963) 2023-04-24 10:28:46 +08:00
README-uk_UA.md docs: add Arabic documentation (#41963) 2023-04-24 10:28:46 +08:00
README-zh_CN.md docs: add Arabic documentation (#41963) 2023-04-24 10:28:46 +08:00
README.md docs: add Arabic link to README.md (#41965) 2023-04-24 14:00:51 +08:00
renovate.json chore: Configure Renovate (#32494) 2021-10-14 21:58:20 +08:00
rome.json chore️: add rome format (#38512) 2022-11-11 18:15:33 +08:00
SECURITY.md chore: add prettier ignore and format demo (#27270) 2020-10-21 11:06:07 +08:00
tsconfig.json chore: migrate to vitest (#42506) 2023-06-07 11:54:50 +08:00
tsconfig.node.json chore: Migrate CJS to ESM (#41809) 2023-04-28 14:32:23 +08:00
vitest.config.ts chore: migrate to vitest (#42506) 2023-06-07 11:54:50 +08:00
vitest.image.config.ts chore: migrate to vitest (#42506) 2023-06-07 11:54:50 +08:00
vitest.node.config.ts chore: migrate to vitest (#42506) 2023-06-07 11:54:50 +08:00
vitest.site.config.ts chore: migrate to vitest (#42506) 2023-06-07 11:54:50 +08:00
webpack.config.js chore: fix deploy action (#42730) 2023-05-31 10:16:19 +08:00

Ant Design

An enterprise-class UI design language and React UI library.

CI status codecov NPM version NPM downloads

FOSSA Status

Follow Twitter Renovate status dumi Issues need help

English | Português | 简体中文 | Українською | Spanish | 日本語 | العربية

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.
  • ⚙️ Whole package of design resources and development tools.
  • 🌍 Internationalization support for dozens of languages.
  • 🎨 Powerful theme customization based on CSS-in-JS.

🖥 Environment Support

  • Modern browsers
  • Server-side Rendering
  • Electron
Edge
Edge
Firefox
Firefox
Chrome
Chrome
Safari
Safari
Electron
Electron
Edge last 2 versions last 2 versions last 2 versions last 2 versions

📦 Install

npm install antd
yarn add antd

🔨 Usage

import React from 'react';
import { Button, DatePicker } from 'antd';

const App = () => (
  <>
    <Button type="primary">PRESS ME</Button>
    <DatePicker placeholder="select date" />
  </>
);

TypeScript

antd is written in TypeScript with complete definitions, check Use in TypeScript to get started.

🌍 Internationalization

Dozens of languages are supported in antd, see i18n.

⌨️ Development

Use Gitpod, a free online dev environment for GitHub.

Open in Gitpod

Or clone locally:

$ git clone git@github.com:ant-design/ant-design.git
$ cd ant-design
$ npm install
$ npm start

Open your browser and visit http://127.0.0.1:8001 , see more at Development.

🤝 Contributing PRs Welcome

Read our contributing guide and let's build a better antd together.

We welcome all contributions. Please read our CONTRIBUTING.md first. You can submit any ideas as pull requests or as GitHub issues. If you'd like to improve code, check out the Development Instructions and have a good time! :)

If you are a collaborator, please follow our Pull Request principle to create a Pull Request with collaborator template.

Let's fund issues in this repository

❤️ Sponsors and Backers