MCPcopy Index your code
hub / github.com/ant-design/ant-design

github.com/ant-design/ant-design @6.5.0 sqlite

repository ↗ · DeepWiki ↗ · release 6.5.0 ↗
5,172 symbols 14,403 edges 2,826 files 22 documented · 0% 55 cross-repo links
README

Ant Design

一套企业级 UI 设计语言和 React 组件库。

CI status codecov NPM version NPM downloads

Follow Twitter dumi FOSSA Status Issues need help LFX Active Contributors

更新日志 · 报告问题 · 特性需求 · English · 中文

❤️ 赞助者

YouMind TRACTIAN LobeHub CodeRabbit

✨ 特性

  • 🌈 提炼自企业级中后台产品的交互语言和视觉风格。
  • 📦 开箱即用的高质量 React 组件。
  • 🛡 使用 TypeScript 开发,提供完整的类型定义文件。
  • ⚙️ 应用开发框架和设计工具配套。
  • 🌍 数十个国际化语言支持。
  • 🎨 基于 CSS-in-JS 的主题定制能力。

🖥 兼容环境

支持范围:https://browsersl.ist/#q=defaults

  • 现代浏览器。
  • 支持服务端渲染。
  • Electron

| Edge

Edge | Firefox

Firefox | Chrome

Chrome | Safari

Safari | Electron

Electron | | --- | --- | --- | --- | --- | | Edge | last 2 versions | last 2 versions | last 2 versions | last 2 versions |

📦 安装

npm install antd --save
yarn add antd
pnpm add antd
bun add antd

🔨 示例

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

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

export default App;

🌈 定制主题

参考 定制主题 文档。

🛡 TypeScript

antd 使用 TypeScript 编写,具有完整的类型定义,参考 在 Next.js 中使用

🌍 国际化

参考 国际化文档

🔗 链接

⌨️ 本地开发

推荐使用 opensumi.run 进行在线开发:

opensumi.run

或者克隆到本地开发:

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

打开浏览器访问 http://127.0.0.1:8001 ,更多本地开发文档

🤝 参与共建 PRs Welcome

Top Contributors of ant-design/ant-design - Last 28 days Performance Stats of ant-design/ant-design - Last 28 days
New participants of ant-design - past 28 days

Contribution Leaderboard

请参考贡献指南.

强烈推荐阅读 《提问的智慧》《如何向开源社区提问题》《如何有效地报告 Bug》《如何向开源项目提交无法解答的问题》,更好的问题更容易获得帮助。

赞助链接

👥 社区互助

如果您在使用的过程中碰到问题,可以通过下面几个途径寻求帮助,同时我们也鼓励资深用户通过下面的途径给新人提供帮助。

通过 GitHub Discussions 提问时,建议使用 Q&A 标签。

通过 Stack Overflow 或者 Segment Fault 提问时,建议加上 antd 标签。

  1. GitHub Discussions
  2. Stack Overflow(英文)
  3. Segment Fault(中文)

Issue 赞助

我们使用 Issuehunt 来推动您希望看到的针对 antd 的修复和改进,请查看我们的赞助列表:

Let's fund issues in this repository

❤️ Backers

Extension points exported contracts — how you extend this code

ProgressToken (Interface)
* @desc Progress 组件的 Token * @descEN Token for Progress component
components/progress/style/index.ts
ColorPrimaryMapToken (Interface)
* 品牌色梯度变量
components/theme/interface/maps/colors.ts
IconProps (Interface)
* Render icon if ExceptionStatus includes ,render svg image else render iconNode * * @param prefixCls * @param {statu
components/result/index.tsx
CheckboxToken (Interface)
* @desc Checkbox 组件的 Token * @descEN Token for Checkbox component
components/checkbox/style/index.ts
DividerToken (Interface)
* @desc Divider 组件的 Token * @descEN Token for Divider component
components/divider/style/index.ts
AnchorToken (Interface)
* @desc Anchor 组件的 Token * @descEN Token for Anchor component
components/anchor/style/index.ts
QRCodeToken (Interface)
* @desc QRCode 组件的 Token * @descEN Token for QRCode component
components/qr-code/style/index.ts
ClosableCollection (Interface)
Collection contains the all the props related with closable. e.g. `closable`, `closeIcon`
components/_util/hooks/useClosable.tsx

Core symbols most depended-on inside this repo

render
called by 2954
scripts/check-site.ts
varName
called by 459
components/theme/util/genStyleUtils.ts
waitFakeTimer
called by 451
tests/utils.tsx
varRef
called by 304
components/theme/util/genStyleUtils.ts
act
called by 197
components/message/index.tsx
useStyle
called by 123
scripts/generate-cssinjs.ts
mountTest
called by 108
tests/shared/mountTest.tsx
useLocale
called by 104
components/locale/useLocale.ts

Shape

Function 4,279
Interface 829
Method 36
Class 28

Languages

TypeScript100%

Modules by API surface

components/transfer/index.tsx31 symbols
components/table/hooks/useFilter/FilterDropdown.tsx25 symbols
components/form/__tests__/index.test.tsx23 symbols
components/typography/Base/index.tsx20 symbols
components/table/__tests__/Table.filter.test.tsx20 symbols
components/modal/demo/dark.tsx20 symbols
components/transfer/Section.tsx18 symbols
components/input/style/variants.ts18 symbols
components/table/hooks/useSorter.tsx17 symbols
components/table/demo/dynamic-settings.tsx17 symbols
components/table/demo/component-token.tsx17 symbols
components/table/interface.ts16 symbols

Used by 2 indexed graphs manifest dependencies, hub-wide

Dependencies from manifests, versioned

@ant-design/colors8.0.1 · 1×
@ant-design/compatible5.1.4 · 1×
@ant-design/cssinjs2.1.2 · 1×
@ant-design/cssinjs-utils2.1.2 · 1×
@ant-design/fast-color3.0.1 · 1×
@ant-design/happy-work-theme2.0.0 · 1×
@ant-design/icons6.3.1 · 1×
@ant-design/static-style-extract2.1.0 · 1×
@ant-design/tools19.2.0 · 1×
@ant-design/x2.7.0 · 1×
@ant-design/x-sdk2.7.0 · 1×

For agents

$ claude mcp add ant-design \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact