This skill is organized to match the Ant Design Mini official documentation structure (https://ant-design-mini.antgroup.com/guide/quick-start, https://ant-design-mini.antgroup.com/components/overview). When working with Ant Design Mini:
- Identify the topic from the user's request:
- Getting started/快速开始 → examples/getting-started.md
- Components/组件 → examples/components/
- API/API 文档 → api/
- Load the appropriate example file from the
examples/ directory:
Getting Started (快速开始):
- examples/getting-started.md - Installation and setup
- examples/quick-start.md - Quick start guide
Components (组件):
- examples/components/overview.md - Components overview
- examples/components/button.md - Button component
- examples/components/input.md - Input component
- examples/components/form.md - Form component
- examples/components/list.md - List component
- examples/components/card.md - Card component
- examples/components/toast.md - Toast component
- examples/components/modal.md - Modal component
- examples/components/tabs.md - Tabs component
- examples/components/nav-bar.md - NavBar component
- examples/components/picker.md - Picker component
- examples/components/date-picker.md - DatePicker component
- examples/components/switch.md - Switch component
- examples/components/checkbox.md - Checkbox component
- examples/components/radio.md - Radio component
- examples/components/stepper.md - Stepper component
- examples/components/avatar.md - Avatar component
- examples/components/badge.md - Badge component
- examples/components/tag.md - Tag component
- examples/components/empty.md - Empty component
- examples/components/loading.md - Loading component
- examples/components/popup.md - Popup component
- examples/components/action-sheet.md - ActionSheet component
- Follow the specific instructions in that example file for syntax, structure, and best practices
Important Notes:
- Ant Design Mini is for Alipay Mini Program and WeChat Mini Program
- Components use mini-program syntax (axml/json)
- Examples include both Alipay and WeChat syntax
- Each example file includes key concepts, code examples, and key points
- Reference API documentation in the
api/ directory when needed:
- api/component-api.md - Component API reference
- api/props-and-events.md - Props and events reference
- Use templates from the
templates/ directory:
- templates/installation.md - Installation templates
- templates/component-usage.md - Component usage templates
1. Understanding Ant Design Mini
Ant Design Mini is a UI component library for Alipay Mini Program and WeChat Mini Program, following Ant Design design specifications.
Key Concepts:
- Mini Program Support: Alipay and WeChat Mini Programs
- Design System: Follows Ant Design design language
- Rich Components: Button, Form, List, Modal, etc.
- Theme Customization: Support for theme customization
- i18n: Internationalization support
2. Installation
Using npm:
```bash
npm install antd-mini
```
Using yarn:
```bash
yarn add antd-mini
```
Using pnpm:
```bash
pnpm add antd-mini
```
3. Basic Setup
```json
// app.json (Alipay Mini Program)
{
"usingComponents": {
"ant-button": "antd-mini/es/Button/index"
}
}
```
```xml
Button
```
Doc mapping (one-to-one with official documentation)
Guide (指南):
- See guide files in
examples/guide/ or examples/getting-started/ → https://ant-design-mini.antgroup.com/guide/quick-start
Components (组件):
- See component files in
examples/components/ → https://ant-design-mini.antgroup.com/components/overview