ant-design/README.md

2.6 KiB

Ant Design npm package NPM downloads Join the chat at https://gitter.im/ant-design/ant-design

An enterprise-class UI design language and React-based implementation.

Features

  • An enterprise-class graphical design language and framework for financial applications.
  • Rich library of UI components base on React Component.
  • A npm + webpack + babel workflow, supporting ES2015.

Install

npm install antd

Usage example

  • Use all components

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

    import DatePicker from 'antd/lib/date-picker';
    ReactDOM.render(<DatePicker />, mountNode);
    

Import style:

// only need to import once in entry module
import 'antd/lib/index.css';
// or less for modifyVars
import 'antd/style/index.less';

Browser Support

Normal browsers and Internet Explorer 8+.

Contributing

We welcome all contributions, please submit any ideas as pull requests or as a GitHub issue.