JSPM

antd

2.7.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1686006
  • Score
    100M100P100Q178201F
  • License MIT

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

Package Exports

  • antd
  • antd/dist/antd
  • antd/dist/antd.css
  • antd/dist/antd.less
  • antd/dist/antd.min.css
  • antd/lib
  • antd/lib/_util/isFlexSupported
  • antd/lib/_util/warning
  • antd/lib/affix
  • antd/lib/affix/style
  • antd/lib/affix/style/css
  • antd/lib/affix/style/index.css
  • antd/lib/affix/style/index.less
  • antd/lib/alert
  • antd/lib/alert/index
  • antd/lib/alert/style
  • antd/lib/alert/style/css
  • antd/lib/alert/style/css.js
  • antd/lib/alert/style/index.css
  • antd/lib/alert/style/index.less
  • antd/lib/anchor
  • antd/lib/anchor/AnchorLink
  • antd/lib/anchor/style
  • antd/lib/anchor/style/css
  • antd/lib/anchor/style/index.css
  • antd/lib/auto-complete
  • antd/lib/auto-complete/index
  • antd/lib/auto-complete/index.js
  • antd/lib/auto-complete/style
  • antd/lib/auto-complete/style/css
  • antd/lib/auto-complete/style/css.js
  • antd/lib/auto-complete/style/index
  • antd/lib/auto-complete/style/index.css
  • antd/lib/auto-complete/style/index.less
  • antd/lib/back-top
  • antd/lib/back-top/style
  • antd/lib/back-top/style/css
  • antd/lib/back-top/style/index.css
  • antd/lib/badge
  • antd/lib/badge/ScrollNumber
  • antd/lib/badge/index
  • antd/lib/badge/style
  • antd/lib/badge/style/css
  • antd/lib/badge/style/index
  • antd/lib/badge/style/index.css
  • antd/lib/badge/style/index.js
  • antd/lib/badge/style/index.less
  • antd/lib/breadcrumb
  • antd/lib/breadcrumb/index
  • antd/lib/breadcrumb/style
  • antd/lib/breadcrumb/style/css
  • antd/lib/breadcrumb/style/css.js
  • antd/lib/breadcrumb/style/index
  • antd/lib/breadcrumb/style/index.css
  • antd/lib/breadcrumb/style/index.js
  • antd/lib/button
  • antd/lib/button/button
  • antd/lib/button/button-group
  • antd/lib/button/index
  • antd/lib/button/index.js
  • antd/lib/button/style
  • antd/lib/button/style/css
  • antd/lib/button/style/css.js
  • antd/lib/button/style/index
  • antd/lib/button/style/index.css
  • antd/lib/button/style/index.js
  • antd/lib/button/style/index.less
  • antd/lib/calendar
  • antd/lib/calendar/Header
  • antd/lib/calendar/locale/en_US
  • antd/lib/calendar/locale/zh_CN
  • antd/lib/calendar/style
  • antd/lib/calendar/style/css
  • antd/lib/calendar/style/index.css
  • antd/lib/calendar/style/index.less
  • antd/lib/card
  • antd/lib/card/index
  • antd/lib/card/style
  • antd/lib/card/style/css
  • antd/lib/card/style/css.js
  • antd/lib/card/style/index
  • antd/lib/card/style/index.css
  • antd/lib/card/style/index.js
  • antd/lib/card/style/index.less
  • antd/lib/carousel
  • antd/lib/carousel/style
  • antd/lib/carousel/style/css
  • antd/lib/carousel/style/index.css
  • antd/lib/cascader
  • antd/lib/cascader/index.js
  • antd/lib/cascader/style
  • antd/lib/cascader/style/css
  • antd/lib/cascader/style/css.js
  • antd/lib/cascader/style/index
  • antd/lib/cascader/style/index.css
  • antd/lib/cascader/style/index.js
  • antd/lib/checkbox
  • antd/lib/checkbox/Group
  • antd/lib/checkbox/index
  • antd/lib/checkbox/index.js
  • antd/lib/checkbox/style
  • antd/lib/checkbox/style/css
  • antd/lib/checkbox/style/css.js
  • antd/lib/checkbox/style/index
  • antd/lib/checkbox/style/index.css
  • antd/lib/checkbox/style/index.js
  • antd/lib/checkbox/style/index.less
  • antd/lib/col
  • antd/lib/col/index
  • antd/lib/col/index.js
  • antd/lib/col/style
  • antd/lib/col/style/css
  • antd/lib/col/style/css.js
  • antd/lib/col/style/index
  • antd/lib/collapse
  • antd/lib/collapse/index
  • antd/lib/collapse/style
  • antd/lib/collapse/style/css
  • antd/lib/collapse/style/index.css
  • antd/lib/collapse/style/index.less
  • antd/lib/date-picker
  • antd/lib/date-picker/RangePicker
  • antd/lib/date-picker/index
  • antd/lib/date-picker/index.js
  • antd/lib/date-picker/locale/en_US
  • antd/lib/date-picker/locale/zh_CN
  • antd/lib/date-picker/style
  • antd/lib/date-picker/style/css
  • antd/lib/date-picker/style/css.js
  • antd/lib/date-picker/style/index
  • antd/lib/date-picker/style/index.css
  • antd/lib/date-picker/style/index.js
  • antd/lib/date-picker/style/index.less
  • antd/lib/date-picker/wrapPicker
  • antd/lib/dropdown
  • antd/lib/dropdown/dropdown
  • antd/lib/dropdown/dropdown-button
  • antd/lib/dropdown/index
  • antd/lib/dropdown/style
  • antd/lib/dropdown/style/css
  • antd/lib/dropdown/style/css.js
  • antd/lib/dropdown/style/index
  • antd/lib/dropdown/style/index.css
  • antd/lib/dropdown/style/index.js
  • antd/lib/dropdown/style/index.less
  • antd/lib/form
  • antd/lib/form/Form
  • antd/lib/form/FormItem
  • antd/lib/form/constants
  • antd/lib/form/index
  • antd/lib/form/style
  • antd/lib/form/style/css
  • antd/lib/form/style/css.js
  • antd/lib/form/style/index
  • antd/lib/form/style/index.css
  • antd/lib/form/style/index.js
  • antd/lib/form/style/index.less
  • antd/lib/grid
  • antd/lib/grid/col
  • antd/lib/grid/row
  • antd/lib/grid/style
  • antd/lib/grid/style/css
  • antd/lib/grid/style/index
  • antd/lib/grid/style/index.css
  • antd/lib/grid/style/index.less
  • antd/lib/icon
  • antd/lib/icon/index
  • antd/lib/icon/style
  • antd/lib/icon/style/css
  • antd/lib/icon/style/css.js
  • antd/lib/icon/style/index
  • antd/lib/icon/style/index.js
  • antd/lib/index
  • antd/lib/index.d.ts
  • antd/lib/index.js
  • antd/lib/input
  • antd/lib/input-number
  • antd/lib/input-number/index.js
  • antd/lib/input-number/style
  • antd/lib/input-number/style/css
  • antd/lib/input-number/style/css.js
  • antd/lib/input-number/style/index
  • antd/lib/input-number/style/index.css
  • antd/lib/input-number/style/index.js
  • antd/lib/input-number/style/index.less
  • antd/lib/input/Group
  • antd/lib/input/Input
  • antd/lib/input/Search
  • antd/lib/input/index
  • antd/lib/input/index.js
  • antd/lib/input/style
  • antd/lib/input/style/css
  • antd/lib/input/style/css.js
  • antd/lib/input/style/index
  • antd/lib/input/style/index.css
  • antd/lib/input/style/index.js
  • antd/lib/input/style/index.less
  • antd/lib/layout
  • antd/lib/layout/Sider
  • antd/lib/layout/index
  • antd/lib/layout/layout
  • antd/lib/layout/style
  • antd/lib/layout/style/css
  • antd/lib/layout/style/css.js
  • antd/lib/layout/style/index
  • antd/lib/layout/style/index.css
  • antd/lib/layout/style/index.js
  • antd/lib/layout/style/index.less
  • antd/lib/locale-provider
  • antd/lib/locale-provider/de_DE
  • antd/lib/locale-provider/en_US
  • antd/lib/locale-provider/es_ES
  • antd/lib/locale-provider/fr_BE
  • antd/lib/locale-provider/index
  • antd/lib/locale-provider/pt_BR
  • antd/lib/locale-provider/ru_RU
  • antd/lib/locale-provider/style
  • antd/lib/locale-provider/style/css
  • antd/lib/locale-provider/style/css.js
  • antd/lib/locale-provider/style/index
  • antd/lib/locale-provider/style/index.css
  • antd/lib/locale-provider/sv_SE
  • antd/lib/mention
  • antd/lib/mention/style
  • antd/lib/mention/style/css
  • antd/lib/mention/style/css.js
  • antd/lib/mention/style/index.css
  • antd/lib/mention/style/index.js
  • antd/lib/menu
  • antd/lib/menu/index
  • antd/lib/menu/style
  • antd/lib/menu/style/css
  • antd/lib/menu/style/css.js
  • antd/lib/menu/style/index
  • antd/lib/menu/style/index.css
  • antd/lib/menu/style/index.js
  • antd/lib/menu/style/index.less
  • antd/lib/message
  • antd/lib/message/index
  • antd/lib/message/style
  • antd/lib/message/style/css
  • antd/lib/message/style/css.js
  • antd/lib/message/style/index
  • antd/lib/message/style/index.css
  • antd/lib/message/style/index.js
  • antd/lib/message/style/index.less
  • antd/lib/modal
  • antd/lib/modal/ActionButton
  • antd/lib/modal/Modal
  • antd/lib/modal/confirm
  • antd/lib/modal/index
  • antd/lib/modal/index.js
  • antd/lib/modal/locale
  • antd/lib/modal/style
  • antd/lib/modal/style/css
  • antd/lib/modal/style/css.js
  • antd/lib/modal/style/index
  • antd/lib/modal/style/index.css
  • antd/lib/modal/style/index.js
  • antd/lib/modal/style/index.less
  • antd/lib/notification
  • antd/lib/notification/index
  • antd/lib/notification/style
  • antd/lib/notification/style/css
  • antd/lib/notification/style/index
  • antd/lib/notification/style/index.css
  • antd/lib/notification/style/index.js
  • antd/lib/notification/style/index.less
  • antd/lib/pagination
  • antd/lib/pagination/MiniSelect
  • antd/lib/pagination/style
  • antd/lib/pagination/style/css
  • antd/lib/pagination/style/css.js
  • antd/lib/pagination/style/index
  • antd/lib/pagination/style/index.css
  • antd/lib/pagination/style/index.less
  • antd/lib/popconfirm
  • antd/lib/popconfirm/index
  • antd/lib/popconfirm/style
  • antd/lib/popconfirm/style/css
  • antd/lib/popconfirm/style/css.js
  • antd/lib/popconfirm/style/index.js
  • antd/lib/popover
  • antd/lib/popover/index
  • antd/lib/popover/index.js
  • antd/lib/popover/style
  • antd/lib/popover/style/css
  • antd/lib/popover/style/css.js
  • antd/lib/popover/style/index
  • antd/lib/popover/style/index.css
  • antd/lib/popover/style/index.js
  • antd/lib/popover/style/index.less
  • antd/lib/progress
  • antd/lib/progress/progress
  • antd/lib/progress/style
  • antd/lib/progress/style/css
  • antd/lib/progress/style/css.js
  • antd/lib/progress/style/index.css
  • antd/lib/progress/style/index.js
  • antd/lib/progress/style/index.less
  • antd/lib/radio
  • antd/lib/radio/group
  • antd/lib/radio/index
  • antd/lib/radio/index.js
  • antd/lib/radio/radio
  • antd/lib/radio/radioButton
  • antd/lib/radio/style
  • antd/lib/radio/style/css
  • antd/lib/radio/style/css.js
  • antd/lib/radio/style/index
  • antd/lib/radio/style/index.css
  • antd/lib/radio/style/index.js
  • antd/lib/radio/style/index.less
  • antd/lib/rate
  • antd/lib/rate/index
  • antd/lib/rate/index.js
  • antd/lib/rate/style
  • antd/lib/rate/style/css
  • antd/lib/rate/style/css.js
  • antd/lib/rate/style/index
  • antd/lib/rate/style/index.css
  • antd/lib/rate/style/index.js
  • antd/lib/row
  • antd/lib/row/index
  • antd/lib/row/index.js
  • antd/lib/row/style
  • antd/lib/row/style/css
  • antd/lib/row/style/css.js
  • antd/lib/row/style/index
  • antd/lib/select
  • antd/lib/select/index
  • antd/lib/select/index.js
  • antd/lib/select/style
  • antd/lib/select/style/css
  • antd/lib/select/style/css.js
  • antd/lib/select/style/index
  • antd/lib/select/style/index.css
  • antd/lib/select/style/index.js
  • antd/lib/select/style/index.less
  • antd/lib/slider
  • antd/lib/slider/index.js
  • antd/lib/slider/style
  • antd/lib/slider/style/css
  • antd/lib/slider/style/css.js
  • antd/lib/slider/style/index
  • antd/lib/slider/style/index.css
  • antd/lib/slider/style/index.js
  • antd/lib/slider/style/index.less
  • antd/lib/spin
  • antd/lib/spin/style
  • antd/lib/spin/style/css
  • antd/lib/spin/style/css.js
  • antd/lib/spin/style/index
  • antd/lib/spin/style/index.css
  • antd/lib/spin/style/index.less
  • antd/lib/steps
  • antd/lib/steps/index
  • antd/lib/steps/style
  • antd/lib/steps/style/css
  • antd/lib/steps/style/index
  • antd/lib/steps/style/index.css
  • antd/lib/steps/style/index.less
  • antd/lib/style
  • antd/lib/style/color/colorPalette.less
  • antd/lib/style/components.less
  • antd/lib/style/css
  • antd/lib/style/index.css
  • antd/lib/style/index.js
  • antd/lib/style/index.less
  • antd/lib/style/themes/default.less
  • antd/lib/switch
  • antd/lib/switch/index
  • antd/lib/switch/index.js
  • antd/lib/switch/style
  • antd/lib/switch/style/css
  • antd/lib/switch/style/css.js
  • antd/lib/switch/style/index
  • antd/lib/switch/style/index.css
  • antd/lib/switch/style/index.js
  • antd/lib/switch/style/index.less
  • antd/lib/table
  • antd/lib/table/ColumnGroup
  • antd/lib/table/Table
  • antd/lib/table/style
  • antd/lib/table/style/css
  • antd/lib/table/style/css.js
  • antd/lib/table/style/index
  • antd/lib/table/style/index.css
  • antd/lib/table/style/index.js
  • antd/lib/table/style/index.less
  • antd/lib/table/util
  • antd/lib/tabs
  • antd/lib/tabs/index
  • antd/lib/tabs/style
  • antd/lib/tabs/style/css
  • antd/lib/tabs/style/index
  • antd/lib/tabs/style/index.css
  • antd/lib/tabs/style/index.less
  • antd/lib/tag
  • antd/lib/tag/CheckableTag
  • antd/lib/tag/index
  • antd/lib/tag/style
  • antd/lib/tag/style/css
  • antd/lib/tag/style/css.js
  • antd/lib/tag/style/index
  • antd/lib/tag/style/index.css
  • antd/lib/tag/style/index.less
  • antd/lib/time-picker
  • antd/lib/time-picker/index.js
  • antd/lib/time-picker/locale/en_US
  • antd/lib/time-picker/locale/zh_CN
  • antd/lib/time-picker/style
  • antd/lib/time-picker/style/css
  • antd/lib/time-picker/style/css.js
  • antd/lib/time-picker/style/index
  • antd/lib/time-picker/style/index.css
  • antd/lib/time-picker/style/index.less
  • antd/lib/timeline
  • antd/lib/timeline/index
  • antd/lib/timeline/style
  • antd/lib/timeline/style/css
  • antd/lib/timeline/style/index.css
  • antd/lib/tooltip
  • antd/lib/tooltip/index
  • antd/lib/tooltip/placements
  • antd/lib/tooltip/style
  • antd/lib/tooltip/style/css
  • antd/lib/tooltip/style/css.js
  • antd/lib/tooltip/style/index
  • antd/lib/tooltip/style/index.css
  • antd/lib/tooltip/style/index.js
  • antd/lib/tooltip/style/index.less
  • antd/lib/transfer
  • antd/lib/transfer/operation
  • antd/lib/transfer/search
  • antd/lib/transfer/style
  • antd/lib/transfer/style/css
  • antd/lib/transfer/style/css.js
  • antd/lib/transfer/style/index
  • antd/lib/transfer/style/index.css
  • antd/lib/transfer/style/index.less
  • antd/lib/tree
  • antd/lib/tree-select
  • antd/lib/tree-select/index
  • antd/lib/tree-select/index.js
  • antd/lib/tree-select/interface
  • antd/lib/tree-select/style
  • antd/lib/tree-select/style/css
  • antd/lib/tree-select/style/css.js
  • antd/lib/tree-select/style/index.css
  • antd/lib/tree-select/style/index.js
  • antd/lib/tree-select/style/index.less
  • antd/lib/tree/index
  • antd/lib/tree/style
  • antd/lib/tree/style/css
  • antd/lib/tree/style/css.js
  • antd/lib/tree/style/index.css
  • antd/lib/tree/style/index.js
  • antd/lib/tree/style/index.less
  • antd/lib/upload
  • antd/lib/upload/index
  • antd/lib/upload/index.js
  • antd/lib/upload/interface
  • antd/lib/upload/style
  • antd/lib/upload/style/css
  • antd/lib/upload/style/css.js
  • antd/lib/upload/style/index
  • antd/lib/upload/style/index.css
  • antd/lib/upload/style/index.js
  • antd/lib/upload/style/index.less
  • antd/lib/version
  • antd/package
  • antd/package.json

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (antd) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Ant Design

Coveralls Dependency Status

npm package NPM downloads Average time to resolve an issue Join the chat at https://gitter.im/ant-design/ant-design

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

中文 README

Features

  • An enterprise-class UI design language for web applications.
  • A set of high-quality React components out of the box.
  • Written in TypeScript with complete define types.
  • A npm + webpack + dva front-end development workflow.

Let's build a better antd together PRs Welcome

antd is an open source project, improvements are welcomed. If you are interested in contributing to antd, you can watch this repository, join in discussion, or try to implement some features which have been accepted.

Install

npm install antd

Usage

Use prebuilt bundle

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

And import style manually:

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

Use modularized antd

  • Use babel-plugin-import (Recommended)

    // .babelrc or babel-loader option
    {
      "plugins": [["import", { libraryName: "antd", style: "css" }]]
    }

    Then you can import components from antd directly.

    // import js and css modularly, parsed by babel-plugin-import
    import { DatePicker } from 'antd';
  • Manual import

    import DatePicker from 'antd/lib/date-picker';  // just for js
    import 'antd/lib/date-picker/style/css';  // with style

Environment Support

  • Browser: Modern browsers and Internet Explorer 9+.

    IE8 issues

  • Server-side Rendering
  • Electron

TypeScript

tsconfig.json

{
  "compilerOptions": {
    "moduleResolution": "node",
    "jsx": "preserve",
    "allowSyntheticDefaultImports": true
  }
}

Note: set allowSyntheticDefaultImports to prevent error TS1192: Module 'react' has no default export.

Contributing

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! :)