Full-stack-skills ant-design-mobile
Builds React mobile UIs with Ant Design Mobile (antd-mobile) components including Button, Form, List, Modal, Picker, Tabs, PullToRefresh, InfiniteScroll, and 50+ mobile-optimized components. Use when the user needs to create mobile-first React interfaces, implement mobile navigation, forms, or data display with Ant Design Mobile.
install
source · Clone the upstream repo
git clone https://github.com/partme-ai/full-stack-skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/partme-ai/full-stack-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/antd-skills/ant-design-mobile" ~/.claude/skills/partme-ai-full-stack-skills-ant-design-mobile && rm -rf "$T"
manifest:
skills/antd-skills/ant-design-mobile/SKILL.mdsource content
When to use this skill
Use this skill whenever the user wants to:
- Build React mobile applications with Ant Design Mobile components
- Use mobile UI components (Button, Form, List, Card, Modal, Tabs, etc.)
- Implement mobile-specific features (pull-to-refresh, infinite scroll, gestures)
- Customize the Ant Design Mobile theme with CSS variables
- Set up internationalization with ConfigProvider
How to use this skill
Workflow
- Install -
and import CSSnpm install antd-mobile - Choose components - Match the UI need to the component from the reference below
- Load the example file - Each component has a detailed example in
examples/components/ - Customize theme - Use ConfigProvider or CSS variables for theming
Quick-Start Example: Mobile Form with Validation
import { Button, Form, Input, Toast } from 'antd-mobile'; function LoginForm() { const [form] = Form.useForm(); const onSubmit = async () => { const values = await form.validateFields(); Toast.show({ content: `Welcome, ${values.username}!` }); }; return ( <Form form={form} layout="horizontal" footer={ <Button block type="submit" color="primary" onClick={onSubmit}> Login </Button> }> <Form.Item name="username" label="Username" rules={[{ required: true }]}> <Input placeholder="Enter username" /> </Form.Item> <Form.Item name="password" label="Password" rules={[{ required: true }]}> <Input type="password" placeholder="Enter password" /> </Form.Item> </Form> ); }
Component Categories
| Category | Components | Example Files |
|---|---|---|
| Navigation | NavBar, TabBar, Tabs, SideBar | , |
| Data Entry | Input, Form, Picker, DatePicker, Switch, Checkbox | , |
| Data Display | List, Card, Badge, Tag, Avatar, Image | , |
| Feedback | Modal, Toast, Dialog, ActionSheet, Loading | , |
| Gestures | PullToRefresh, InfiniteScroll, Swiper | |
API Reference
- All component props and APIsapi/components.md
- Global configuration and themingapi/config-provider.md
Best Practices
- Import CSS first - Add
in your entry fileimport 'antd-mobile/es/global' - Wrap with ConfigProvider - Set locale and theme at the app root
- Use CSS variables for theming - Override
etc. for custom branding--adm-color-primary - Tree-shake imports - Import individual components (
) for smaller bundlesimport { Button } from 'antd-mobile' - Test on real devices - Mobile touch behavior differs from desktop browser emulation
Resources
- Official Website: https://ant-design-mobile.antgroup.com/
- GitHub: https://github.com/ant-design/ant-design-mobile
Keywords
antd-mobile, Ant Design Mobile, React mobile, mobile UI, 移动端, 组件库, Button, Form, List, Modal, Tabs, PullToRefresh, InfiniteScroll, Toast, NavBar, TabBar, mobile components