v6React UI library · MIT license

Ant Design

Enterprise-grade React components with one consistent design language.

Ant Design gives product teams ready-made tables, forms, layouts and feedback components, themed through design tokens and backed by Pro templates, Ant Design X for AI screens and a Vue implementation.

  • Written in TypeScript
  • MIT licensed
  • React 18+ for v6
Illustrative Ant Design dashboard with project metrics, activity chart and status table
antdnpm install antd
What Is It

What Is Ant Design?

A design system and component library for building data-rich web applications with React.

Ant Design style form controls, feedback messages and progress indicator example

One design language, many building blocks

Ant Design combines design principles with a production-ready React library published on npm as antd. It focuses on enterprise products such as dashboards, consoles and internal tools, where clarity, consistency and efficient data handling matter more than decoration.

Components share tokens for color, spacing and typography, so a team can change its brand in one place. Around the core library sit Ant Design Pro for admin templates, Ant Design X for AI interfaces and the community-maintained Ant Design Vue for Vue 3 projects.

Maintained by
Ant Group & community
License
MIT
Package
antd on npm
Features

Ant Design Features That Matter

Capabilities that make the library a strong fit for complex, data-heavy interfaces.

  • Enterprise component library

    Buttons, inputs, tables, forms, modals, menus, date pickers and dozens more components share one visual language, so complex screens look consistent from the first build.

  • Written in TypeScript

    The source is TypeScript, and the published package includes type definitions, giving editors accurate autocomplete and catching wrong props before code runs.

  • Design token theming

    Colors, radius, spacing and typography are controlled through tokens in ConfigProvider, letting a team apply its brand without overriding class names.

  • Dark and compact modes

    Built-in algorithms generate dark and compact palettes from the same seed tokens, so night themes and dense layouts need no separate stylesheet.

  • Internationalization

    Locale packs translate built-in text such as pagination, empty states and calendars, and one provider switches every component at once.

  • Powerful Table and Form

    Sorting, filtering, pagination, row selection, validation rules and dynamic fields are handled through props, which keeps data-heavy screens short.

  • Layout and grid system

    Layout, Row, Col, Flex and Space build responsive page structures and toolbars that follow the same spacing tokens as every other component.

  • Separate icon package

    Icons ship in @ant-design/icons, so applications import only the icons they use, and versions are matched with the core library.

How It Works

How Ant Design Works in a Project

From an empty React app to a themed interface in four stages.

  1. Step

    Install the package

    Add antd to a React project with npm, yarn, pnpm or bun. The package manager records the version and fetches dependencies.

  2. Step

    Import components

    Import what a screen needs, such as Button, Form or Table, and compose them like any other React element.

  3. Step

    Configure theme and locale

    Wrap the app in ConfigProvider to set tokens, locale and size, plus the App component for message and modal context.

  4. Step

    Build and ship

    Bundlers remove unused components automatically, so the production build contains only the parts your interface uses.

Compatibility

Compatibility and Requirements

What a project needs before installing the current major version.

React version

Ant Design 6 requires React 18 or later and no longer supports React 17 or earlier.

Browsers

Version 6 targets modern browsers. Check the documentation before supporting older browser versions.

TypeScript

Type definitions are included in the package, so no separate typings install is needed.

Package managers

npm, yarn, pnpm and bun are all documented install routes for the antd package.

Server-side rendering

Server rendering is supported; the documentation covers setup notes for frameworks such as Next.js.

Icons package

With antd 6, use @ant-design/icons 6. Icons 6 is not compatible with antd 5.

Use Cases

Where Ant Design Fits Best

Typical products teams build with the library and its extensions.

Admin dashboards

Dashboards combine statistics, charts, tables and filters on one screen. Ant Design supplies the layout shell, data display components and feedback messages, so teams spend their time on metrics rather than on building basic controls.

  • Layout
  • Statistic
  • Table
  • Card
Benefits

Why Teams Choose Ant Design

Practical value for designers, developers and product owners.

Spend effort on product logic, not on rebuilding buttons and tables.

Shared components and tokens remove repeated interface work, so each release concentrates on the features users actually notice.

  • Consistent interfaces by default

    Shared design rules mean new screens match existing ones without extra design reviews for every button and input.

  • Less time on basic controls

    Validation, sorting, pagination and date handling arrive ready, freeing developers to focus on product logic.

  • Documentation with live demos

    Every component page includes runnable examples and an API table, which shortens the path from question to working code.

  • Open source under MIT

    The MIT license allows commercial and personal use, provided the license notice is kept with the code.

  • Broad ecosystem

    Pro templates, ProComponents, Ant Design X, charts, mobile components and a Vue implementation extend the same visual language.

Installation

Install Ant Design in Minutes

Four setup steps and the exact commands for each package manager.

  1. Prepare Node.js and React

    Install a current Node.js release and confirm the project runs React 18 or later before adding version 6.

  2. Install antd

    Run the install command for your package manager inside the project folder. Use the tabs to switch commands.

  3. Add the icon package

    Install @ant-design/icons with a major version matching antd to avoid runtime errors.

  4. Wrap the app

    Place ConfigProvider and App at the root to apply theme tokens, locale and message context.

# add the component library
$ npm install antd
# add the icon package
$ npm install @ant-design/icons
Then: import { Button } from 'antd'
Download

Download Ant Design Source

The Ant Design source ZIP contains the master branch of the GitHub repository, including component source code, demos, documentation and build scripts for studying how each component works.

  • Source: ant-design repository, master branch
  • License: MIT
  • Node.js needed to run repository scripts
  • Contents: source, demos and docs
Download Ant Design

Building an application? Install the compiled package with npm install antd instead of copying files from the archive.

Ant Design source repository folder list and terminal installation commands
Safety

Safe Download Information

Simple habits that keep dependencies and source files trustworthy.

  • Use the supplied source

    The download button points to the ant-design repository on GitHub. Avoid reposted archives.

  • Prefer npm for apps

    Install the compiled package for applications instead of copying files from the source ZIP.

  • Review lock files

    Check dependency changes in pull requests so unexpected packages never slip in.

  • Keep versions current

    Apply patch releases regularly and read release notes before larger updates.

  • Back up before upgrades

    Commit your work or create a branch before a major upgrade, so changes can be reverted.

Pros and Cons

Ant Design Pros and Cons

A balanced view of strengths and trade-offs before you commit.

Pros

  • Large, consistent component set covers most enterprise interface needs.
  • Token-based theming keeps brand changes in one configuration object.
  • TypeScript definitions are included with the package.
  • Clear documentation with live demos for every component.
  • Rich ecosystem including Pro templates and Ant Design X.

Cons

  • Opinionated visual style needs token work when a product wants a very different look.
  • Version 6 needs React 18+ so older projects must upgrade React first.
  • Major upgrades take planning because deprecated APIs are removed over time.
  • Bundle size grows with usage on screens that import many complex components.
  • Vue support is a separate project with its own maintainers and release timing.
Releases

Release and Version Information

How new versions are published, according to the project changelog.

Weekly

Patch releases

Routine bug fixes ship as patch versions at the end of each week, with urgent fixes released whenever needed.

Monthly

Minor releases

New features arrive in minor versions at the end of each month, following Semantic Versioning.

As needed

Major releases

Breaking changes are grouped into major versions outside the regular schedule, each with a migration guide.

Version 6 is the current major line and was released together with Ant Design X 2. Check the official changelog for the latest version number and release notes before upgrading.

Troubleshooting

Common Problems and Fixes

Quick answers for issues that appear during setup and upgrades.

  • Install shows peer dependency warnings

    Package manager reports React version conflicts.

    Upgrade the project to React 18 or later, or stay on an earlier antd major version until React is upgraded.

  • Icons break after upgrading

    Errors mention @ant-design/icons components.

    Install @ant-design/icons 6 alongside antd 6. The two major versions must match.

  • Custom styles look wrong

    Global CSS targets internal antd class names.

    Move visual changes into theme tokens or component tokens in ConfigProvider instead of overriding classes.

  • Messages ignore the theme

    message or Modal static methods look unstyled.

    Wrap the app with the App component and call App.useApp() to get context-aware message and modal helpers.

  • Source ZIP has no ready build

    Extracted folder contains source files only.

    Install the compiled package with npm for applications. Use the ZIP for reading code or running the repository scripts.

  • DatePicker rejects values

    Values are plain strings or Date objects.

    Pass Day.js objects to date components and format them only when sending data to your API.

FAQ

Ant Design FAQs

Answers to common questions about the library, downloads and development.