When to use this skill
Use this skill whenever the user wants to:
- Build React applications with Ant Design components
- Use Ant Design UI components (Button, Form, Table, Input, Select, etc.)
- Customize Ant Design theme and styles
- Implement internationalization (i18n) with Ant Design
- Use Ant Design with TypeScript
- Create forms with validation
- Display data in tables and lists
- Implement navigation and layout
- Use Ant Design icons
- Handle user feedback (Modal, Message, Notification)
- Implement data visualization components
- Use Ant Design design tokens and design system
How to use this skill
This skill is organized to match the Ant Design React official documentation structure (https://4x-ant-design.antgroup.com/docs/react/introduce-cn, https://4x-ant-design.antgroup.com/components/overview-cn/). When working with Ant Design React:
Identify the topic from the user's request:
- Getting started/快速开始 →
examples/getting-started/installation.md or examples/getting-started/basic-usage.md
- Button/按钮 →
examples/components/button.md
- Form/表单 →
examples/components/form.md
- Table/表格 →
examples/components/table.md
- Input/输入框 →
examples/components/input.md
- Select/选择器 →
examples/components/select.md
- DatePicker/日期选择器 →
examples/components/date-picker.md
- Modal/对话框 →
examples/components/modal.md
- Layout/布局 →
examples/components/layout.md
- Menu/菜单 →
examples/components/menu.md
- Theme customization/主题定制 →
examples/advanced/theme-customization.md
- Internationalization/国际化 →
examples/advanced/internationalization.md
- TypeScript/类型支持 →
examples/advanced/typescript.md
Load the appropriate example file from the examples/ directory:
Getting Started (快速开始) - examples/getting-started/:
examples/getting-started/installation.md - Installing Ant Design and basic setup
examples/getting-started/basic-usage.md - Basic component usage
Components (组件) - examples/components/:
examples/components/button.md - Button component
examples/components/input.md - Input component
examples/components/form.md - Form component with validation
examples/components/table.md - Table component
examples/components/select.md - Select component
examples/components/date-picker.md - DatePicker component
examples/components/modal.md - Modal component
examples/components/layout.md - Layout component
examples/components/menu.md - Menu component
examples/components/icon.md - Icon component
examples/components/typography.md - Typography component
examples/components/grid.md - Grid component
examples/components/space.md - Space component
examples/components/card.md - Card component
examples/components/tabs.md - Tabs component
examples/components/pagination.md - Pagination component
examples/components/upload.md - Upload component
examples/components/upload.md - Upload component
examples/components/message.md - Message component
examples/components/notification.md - Notification component
examples/components/alert.md - Alert component
examples/components/spin.md - Spin component
examples/components/progress.md - Progress component
Advanced (高级) - examples/advanced/:
examples/advanced/theme-customization.md - Customizing theme
examples/advanced/internationalization.md - Internationalization setup
examples/advanced/typescript.md - TypeScript support
Follow the specific instructions in that example file for syntax, structure, and best practices
Important Notes:
- All examples follow Ant Design React 4.x API
- Examples include both JavaScript and TypeScript versions where applicable
- Each example file includes key concepts, code examples, and key points
- Always check the example file for best practices and common patterns
Reference API documentation in the api/ directory when needed:
api/components.md - Component API reference
api/config-provider.md - ConfigProvider API
api/design-tokens.md - Design tokens API
Use templates from the templates/ directory:
templates/project-setup.md - Project setup templates
templates/component-template.md - Component usage templates
Doc mapping (one-to-one with official documentation)
Guide (指南):
Components (组件):
Examples and Templates
This skill includes detailed examples organized to match the official documentation structure. All examples are in the examples/ directory (see mapping above).
To use examples:
- Identify the topic from the user's request
- Load the appropriate example file from the mapping above
- Follow the instructions, syntax, and best practices in that file
- Adapt the code examples to your specific use case
To use templates:
- Reference templates in
templates/ directory for common scaffolding
- Adapt templates to your specific needs and coding style
API Reference
Detailed API documentation is available in the api/ directory, organized to match the official Ant Design React API documentation structure:
Components API (api/components.md)
- All component props and APIs
- Component methods and events
- Component types and interfaces
ConfigProvider API (api/config-provider.md)
- ConfigProvider component API
- Global configuration options
- Locale configuration
Design Tokens API (api/design-tokens.md)
- Design tokens reference
- Theme customization tokens
- CSS variables
To use API reference:
- Identify the API you need help with
- Load the corresponding API file from the
api/ directory
- Find the API signature, parameters, return type, and examples
- Reference the linked example files for detailed usage patterns
- All API files include links to relevant example files in the
examples/ directory
Best Practices
- Import styles: Import Ant Design CSS in your entry file
- Use ConfigProvider: Wrap your app with ConfigProvider for global configuration
- Form validation: Use Form component with validation rules
- TypeScript: Use TypeScript for better type safety
- Theme customization: Use design tokens for consistent theming
- Internationalization: Use ConfigProvider with locale for i18n
- Component composition: Compose components for complex UIs
- Performance: Use React.memo and useMemo for optimization
- Accessibility: Follow Ant Design accessibility guidelines
- Responsive design: Use Grid and responsive utilities
Resources
Keywords
Ant Design, Ant Design React, antd, React UI library, components, Button, Form, Table, Input, Select, DatePicker, Modal, Layout, Menu, theme, customization, internationalization, i18n, TypeScript, design system, 组件库, 按钮, 表单, 表格, 输入框, 选择器, 日期选择器, 对话框, 布局, 菜单, 主题, 国际化, 类型支持
1---2name: ant-design-react3description: Provides comprehensive guidance for Ant Design React component library including components, design system, themes, and TypeScript support. Use when the user asks about Ant Design for React, needs to build React applications with Ant Design, or implement design system patterns.4license: Complete terms in LICENSE.txt5---67## When to use this skill89Use this skill whenever the user wants to:10- Build React applications with Ant Design components11- Use Ant Design UI components (Button, Form, Table, Input, Select, etc.)12- Customize Ant Design theme and styles13- Implement internationalization (i18n) with Ant Design14- Use Ant Design with TypeScript15- Create forms with validation16- Display data in tables and lists17- Implement navigation and layout18- Use Ant Design icons19- Handle user feedback (Modal, Message, Notification)20- Implement data visualization components21- Use Ant Design design tokens and design system2223## How to use this skill2425This skill is organized to match the Ant Design React official documentation structure (https://4x-ant-design.antgroup.com/docs/react/introduce-cn, https://4x-ant-design.antgroup.com/components/overview-cn/). When working with Ant Design React:26271. **Identify the topic** from the user's request:28 - Getting started/快速开始 → `examples/getting-started/installation.md` or `examples/getting-started/basic-usage.md`29 - Button/按钮 → `examples/components/button.md`30 - Form/表单 → `examples/components/form.md`31 - Table/表格 → `examples/components/table.md`32 - Input/输入框 → `examples/components/input.md`33 - Select/选择器 → `examples/components/select.md`34 - DatePicker/日期选择器 → `examples/components/date-picker.md`35 - Modal/对话框 → `examples/components/modal.md`36 - Layout/布局 → `examples/components/layout.md`37 - Menu/菜单 → `examples/components/menu.md`38 - Theme customization/主题定制 → `examples/advanced/theme-customization.md`39 - Internationalization/国际化 → `examples/advanced/internationalization.md`40 - TypeScript/类型支持 → `examples/advanced/typescript.md`41422. **Load the appropriate example file** from the `examples/` directory:4344 **Getting Started (快速开始) - `examples/getting-started/`**:45 - `examples/getting-started/installation.md` - Installing Ant Design and basic setup46 - `examples/getting-started/basic-usage.md` - Basic component usage4748 **Components (组件) - `examples/components/`**:49 - `examples/components/button.md` - Button component50 - `examples/components/input.md` - Input component51 - `examples/components/form.md` - Form component with validation52 - `examples/components/table.md` - Table component53 - `examples/components/select.md` - Select component54 - `examples/components/date-picker.md` - DatePicker component55 - `examples/components/modal.md` - Modal component56 - `examples/components/layout.md` - Layout component57 - `examples/components/menu.md` - Menu component58 - `examples/components/icon.md` - Icon component59 - `examples/components/typography.md` - Typography component60 - `examples/components/grid.md` - Grid component61 - `examples/components/space.md` - Space component62 - `examples/components/card.md` - Card component63 - `examples/components/tabs.md` - Tabs component64 - `examples/components/pagination.md` - Pagination component65 - `examples/components/upload.md` - Upload component66 - `examples/components/upload.md` - Upload component67 - `examples/components/message.md` - Message component68 - `examples/components/notification.md` - Notification component69 - `examples/components/alert.md` - Alert component70 - `examples/components/spin.md` - Spin component71 - `examples/components/progress.md` - Progress component7273 **Advanced (高级) - `examples/advanced/`**:74 - `examples/advanced/theme-customization.md` - Customizing theme75 - `examples/advanced/internationalization.md` - Internationalization setup76 - `examples/advanced/typescript.md` - TypeScript support77783. **Follow the specific instructions** in that example file for syntax, structure, and best practices7980 **Important Notes**:81 - All examples follow Ant Design React 4.x API82 - Examples include both JavaScript and TypeScript versions where applicable83 - Each example file includes key concepts, code examples, and key points84 - Always check the example file for best practices and common patterns85864. **Reference API documentation** in the `api/` directory when needed:87 - `api/components.md` - Component API reference88 - `api/config-provider.md` - ConfigProvider API89 - `api/design-tokens.md` - Design tokens API90915. **Use templates** from the `templates/` directory:92 - `templates/project-setup.md` - Project setup templates93 - `templates/component-template.md` - Component usage templates949596### Doc mapping (one-to-one with official documentation)9798**Guide (指南)**:99- See guide files in `examples/guide/` or `examples/getting-started/` → https://4x-ant-design.antgroup.com/docs/react/introduce-cn100101**Components (组件)**:102- See component files in `examples/components/` → https://4x-ant-design.antgroup.com/components/overview-cn/103104## Examples and Templates105106This skill includes detailed examples organized to match the official documentation structure. All examples are in the `examples/` directory (see mapping above).107108**To use examples:**109- Identify the topic from the user's request110- Load the appropriate example file from the mapping above111- Follow the instructions, syntax, and best practices in that file112- Adapt the code examples to your specific use case113114**To use templates:**115- Reference templates in `templates/` directory for common scaffolding116- Adapt templates to your specific needs and coding style117118## API Reference119120Detailed API documentation is available in the `api/` directory, organized to match the official Ant Design React API documentation structure:121122### Components API (`api/components.md`)123- All component props and APIs124- Component methods and events125- Component types and interfaces126127### ConfigProvider API (`api/config-provider.md`)128- ConfigProvider component API129- Global configuration options130- Locale configuration131132### Design Tokens API (`api/design-tokens.md`)133- Design tokens reference134- Theme customization tokens135- CSS variables136137**To use API reference:**1381. Identify the API you need help with1392. Load the corresponding API file from the `api/` directory1403. Find the API signature, parameters, return type, and examples1414. Reference the linked example files for detailed usage patterns1425. All API files include links to relevant example files in the `examples/` directory143144## Best Practices1451461. **Import styles**: Import Ant Design CSS in your entry file1472. **Use ConfigProvider**: Wrap your app with ConfigProvider for global configuration1483. **Form validation**: Use Form component with validation rules1494. **TypeScript**: Use TypeScript for better type safety1505. **Theme customization**: Use design tokens for consistent theming1516. **Internationalization**: Use ConfigProvider with locale for i18n1527. **Component composition**: Compose components for complex UIs1538. **Performance**: Use React.memo and useMemo for optimization1549. **Accessibility**: Follow Ant Design accessibility guidelines15510. **Responsive design**: Use Grid and responsive utilities156157## Resources158159- **Official Website**: https://4x-ant-design.antgroup.com/index-cn160- **Getting Started**: https://4x-ant-design.antgroup.com/docs/react/introduce-cn161- **Components**: https://4x-ant-design.antgroup.com/components/overview-cn/162- **GitHub Repository**: https://github.com/ant-design/ant-design163164## Keywords165166Ant Design, Ant Design React, antd, React UI library, components, Button, Form, Table, Input, Select, DatePicker, Modal, Layout, Menu, theme, customization, internationalization, i18n, TypeScript, design system, 组件库, 按钮, 表单, 表格, 输入框, 选择器, 日期选择器, 对话框, 布局, 菜单, 主题, 国际化, 类型支持