ant-design-react
Builds enterprise React UIs with Ant Design (antd) including 60+ components (Button, Form, Table, Select, Modal, Message), design tokens, TypeScript support, and ConfigProvider theming. Use when the user needs to create React applications with Ant Design, build forms with validation, display data tables, or customize the Ant Design theme.
Best use case
ant-design-react is best used when you need a repeatable AI agent workflow instead of a one-off prompt. It is especially useful for teams working in multi. Builds enterprise React UIs with Ant Design (antd) including 60+ components (Button, Form, Table, Select, Modal, Message), design tokens, TypeScript support, and ConfigProvider theming. Use when the user needs to create React applications with Ant Design, build forms with validation, display data tables, or customize the Ant Design theme.
Builds enterprise React UIs with Ant Design (antd) including 60+ components (Button, Form, Table, Select, Modal, Message), design tokens, TypeScript support, and ConfigProvider theming. Use when the user needs to create React applications with Ant Design, build forms with validation, display data tables, or customize the Ant Design theme.
Users should expect a more consistent workflow output, faster repeated execution, and less time spent rewriting prompts from scratch.
Practical example
Example input
Use the "ant-design-react" skill to help with this workflow task. Context: Builds enterprise React UIs with Ant Design (antd) including 60+ components (Button, Form, Table, Select, Modal, Message), design tokens, TypeScript support, and ConfigProvider theming. Use when the user needs to create React applications with Ant Design, build forms with validation, display data tables, or customize the Ant Design theme.
Example output
A structured workflow result with clearer steps, more consistent formatting, and an output that is easier to reuse in the next run.
When to use this skill
- Use this skill when you want a reusable workflow rather than writing the same prompt again and again.
When not to use this skill
- Do not use this when you only need a one-off answer and do not need a reusable workflow.
- Do not use it if you cannot install or maintain the related files, repository context, or supporting tools.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/ant-design-react/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How ant-design-react Compares
| Feature / Agent | ant-design-react | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Builds enterprise React UIs with Ant Design (antd) including 60+ components (Button, Form, Table, Select, Modal, Message), design tokens, TypeScript support, and ConfigProvider theming. Use when the user needs to create React applications with Ant Design, build forms with validation, display data tables, or customize the Ant Design theme.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
SKILL.md Source
## When to use this skill
Use this skill whenever the user wants to:
- Build React applications with Ant Design (antd) components
- Create forms with validation (Form, Input, Select, DatePicker)
- Display data in tables with sorting, filtering, and pagination
- Customize the Ant Design theme with design tokens or CSS variables
- Use feedback components (Modal, Message, Notification)
- Implement layouts and navigation (Layout, Menu, Breadcrumb)
- Use Ant Design design tokens and design system
## How to use this skill
### Quick-Start Example: Form with Table
```tsx
import { Button, Form, Input, Table, message } from 'antd';
const columns = [
{ title: 'Name', dataIndex: 'name', sorter: (a, b) => a.name.localeCompare(b.name) },
{ title: 'Email', dataIndex: 'email' },
{ title: 'Status', dataIndex: 'status', filters: [
{ text: 'Active', value: 'active' }, { text: 'Inactive', value: 'inactive' }
], onFilter: (value, record) => record.status === value },
];
function UserPage() {
const [form] = Form.useForm();
const onFinish = (values) => {
message.success(`Created user: ${values.name}`);
};
return (
<>
<Form form={form} layout="inline" onFinish={onFinish}>
<Form.Item name="name" rules={[{ required: true }]}>
<Input placeholder="Name" />
</Form.Item>
<Form.Item name="email" rules={[{ required: true, type: 'email' }]}>
<Input placeholder="Email" />
</Form.Item>
<Form.Item>
<Button type="primary" htmlType="submit">Add User</Button>
</Form.Item>
</Form>
<Table columns={columns} dataSource={[]} rowKey="id" pagination={{ pageSize: 10 }} />
</>
);
}
```
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:
1. **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`
2. **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
3. **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
4. **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
5. **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 (指南)**:
- See guide files in `examples/guide/` or `examples/getting-started/` → https://4x-ant-design.antgroup.com/docs/react/introduce-cn
**Components (组件)**:
- See component files in `examples/components/` → https://4x-ant-design.antgroup.com/components/overview-cn/
## 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:**
1. Identify the API you need help with
2. Load the corresponding API file from the `api/` directory
3. Find the API signature, parameters, return type, and examples
4. Reference the linked example files for detailed usage patterns
5. All API files include links to relevant example files in the `examples/` directory
## Best Practices
1. **Import styles**: Import Ant Design CSS in your entry file
2. **Use ConfigProvider**: Wrap your app with ConfigProvider for global configuration
3. **Form validation**: Use Form component with validation rules
4. **TypeScript**: Use TypeScript for better type safety
5. **Theme customization**: Use design tokens for consistent theming
6. **Internationalization**: Use ConfigProvider with locale for i18n
7. **Component composition**: Compose components for complex UIs
8. **Performance**: Use React.memo and useMemo for optimization
9. **Accessibility**: Follow Ant Design accessibility guidelines
10. **Responsive design**: Use Grid and responsive utilities
## Resources
- **Official Website**: https://4x-ant-design.antgroup.com/index-cn
- **Getting Started**: https://4x-ant-design.antgroup.com/docs/react/introduce-cn
- **Components**: https://4x-ant-design.antgroup.com/components/overview-cn/
- **GitHub Repository**: https://github.com/ant-design/ant-design
## 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, 组件库, 按钮, 表单, 表格, 输入框, 选择器, 日期选择器, 对话框, 布局, 菜单, 主题, 国际化, 类型支持Related Skills
course-designer
Design structured courses including syllabi, learning objectives using Bloom's taxonomy, lesson plans, and assessment rubrics. Use when the user asks about course design, needs to create a curriculum, write learning objectives, structure educational modules, or build assessment plans.
stitch-ui-designer
Master orchestrator for end-to-end Stitch UI design and generation. Use when the user asks to design, create, or make a UI screen using Stitch. Coordinates design spec generation, framework contract injection, prompt assembly, and MCP execution (create_project, generate_screen_from_text, get_screen) in a single workflow.
stitch-ui-design-variants
Generate alternative Stitch design variant prompts for A/B testing and creative exploration. Use when the user wants multiple style, layout, or content options for a Stitch screen. Takes a base Design Spec or prompt and produces 3 distinct variants (layout, style, or content variations).
stitch-ui-design-spec-vant
Vant 4 (Vue 3/Mobile) design spec for Stitch screen generation. Use when the user mentions Vant, vant4, or vant-ui in a Stitch design request. Outputs a hard-constraints prefix with Vant tokens (Primary #1989fa, van-button/van-field/van-nav-bar components, mobile-first 375px) or a CONTRACT_SELECTION_JSON_V1 selector.
stitch-ui-design-spec-uviewpro
uView Pro (uni-app/Vue 3) design spec for Stitch screen generation. Use when the user mentions uview-pro, uviewpro, or uview 3.0 in a Stitch design request. Outputs a hard-constraints prefix with uView Pro tokens (Primary #3c9cff, rpx units, u-button/u-form/u-navbar components, script setup) or a CONTRACT_SELECTION_JSON_V1 selector.
stitch-ui-design-spec-uview
uView 2.0 (uni-app/Vue 2) design spec for Stitch screen generation. Use when the user mentions uview, uview2, or u-view in a Stitch design request. Do NOT use for uView Pro requests. Outputs a hard-constraints prefix with uView 2 tokens (Primary #3c9cff, u-row/u-col/u-button components) or a CONTRACT_SELECTION_JSON_V1 selector.
stitch-ui-design-spec-layui
Layui-Vue design spec for Stitch screen generation. Use when the user mentions Layui, layui-vue, or layui admin in a Stitch design request. Outputs a hard-constraints prefix with Layui tokens (Primary #16baaa, Nav-bg #393D49, layui-btn/input/card components) or a CONTRACT_SELECTION_JSON_V1 selector with assembled prompt.
stitch-ui-design-spec-generator
Translate user requirements into a structured Stitch Design Spec JSON covering theme, primaryColor, font, roundness, density, designMode, styleKeywords, and deviceType. Use when starting a new Stitch design task to determine visual direction before prompt assembly. Supports one-shot user requests and PRD documents as input.
stitch-ui-design-spec-element-plus
Element Plus design spec for Stitch screen generation. Use when the user mentions Element Plus, element-ui, or el-plus in a Stitch design request. Outputs a hard-constraints prefix with Element Plus tokens (colors, typography, radius, el-* components) or a CONTRACT_SELECTION_JSON_V1 selector with assembled prompt.
stitch-ui-design-spec-bootstrap
Bootstrap-Vue (Bootstrap 5/Vue) design spec for Stitch screen generation. Use when the user mentions Bootstrap, bootstrap-vue, bs-vue, or bs5 in a Stitch design request. Outputs a hard-constraints prefix with Bootstrap tokens (Primary #0d6efd, b-container/b-row/b-col/b-button components, mobile-first grid) or a CONTRACT_SELECTION_JSON_V1 selector.
stitch-react-components
Convert Stitch designs into modular Vite/React components with validation and design token consistency. Uses Stitch MCP get_screen to retrieve design JSON and HTML; supports high-reliability fetch via scripts; enforces modular structure, type safety, and theme-mapped Tailwind.
stitch-design-md
Analyze Stitch projects and synthesize a semantic design system into DESIGN.md. Use when the user wants to extract a style guide, create visual consistency across Stitch screens, or document design tokens (colors, typography, spacing) from existing Stitch designs. Retrieves screens via Stitch MCP and outputs a markdown design system file.