Questions tagged [antd]

This tag should be used for any questions regarding the Ant Design. It is an enterprise-class UI design language and React-based implementation.

Ant Design

An enterprise-class UI design language and React implementation.

✨ Features

  • An enterprise-class UI design system for web applications.
  • A set of high-quality React components out of the box.
  • Written in TypeScript with predictable static types.
  • The whole package of development and design resources and tools.

Environment Support

  • Modern browsers and Internet Explorer 9+ (with polyfills)
  • Server-side Rendering
  • Electron

Install

npm install antd
yarn add antd

Usage

import { DatePicker } from 'antd';
ReactDOM.render(<DatePicker />, mountNode);

And import style manually:

import 'antd/dist/antd.css'; // or 'antd/dist/antd.less'

Or import components on demand.

TypeScript

See Use in TypeScript.

Internationalization

See i18n.

Links

⌨️ 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

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 the codebase, 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 by collaborator template.

5144 questions
21
votes
4 answers

CSS for colouring one row of antd table in react

This is the CSS for the antd style I'm using style.css .ant-table-tbody > tr > td, .ant-table-thead > tr > th { padding:4px; } tr:nth-child(odd){ background: #f1e6ff; } tr:nth-child(even){ background:…
Jane Fred
  • 1,379
  • 7
  • 23
  • 47
21
votes
2 answers

antd - ant design table with pagination control supporting a widget to choose rows per page?

Does the Ant Design Table controller take a Pagination component, instead of a plain object of properties. I need to add a switcher, to switch between rows per page. Currently it is implemented in the Pagination component.
Aadhi Vive
  • 575
  • 1
  • 5
  • 17
21
votes
9 answers

how to clear and select items programmatically

I'm using https://ant.design/components/select/ How can I programmatically remove the selected items from