vant-vue3

Provides structured guidance for Vant of Vue 3.0. Use when the user needs Vant with Vue 3, asks about mobile UI components such as Button, Cell, Form, Dialog, Toast, Popup, ConfigProvider, theme customization, project setup, or wants to implement mobile-first interfaces with vant or van- components.

261 stars

Best use case

vant-vue3 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. Provides structured guidance for Vant of Vue 3.0. Use when the user needs Vant with Vue 3, asks about mobile UI components such as Button, Cell, Form, Dialog, Toast, Popup, ConfigProvider, theme customization, project setup, or wants to implement mobile-first interfaces with vant or van- components.

Provides structured guidance for Vant of Vue 3.0. Use when the user needs Vant with Vue 3, asks about mobile UI components such as Button, Cell, Form, Dialog, Toast, Popup, ConfigProvider, theme customization, project setup, or wants to implement mobile-first interfaces with vant or van- components.

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 "vant-vue3" skill to help with this workflow task. Context: Provides structured guidance for Vant of Vue 3.0. Use when the user needs Vant with Vue 3, asks about mobile UI components such as Button, Cell, Form, Dialog, Toast, Popup, ConfigProvider, theme customization, project setup, or wants to implement mobile-first interfaces with vant or van- components.

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

$curl -o ~/.claude/skills/vant-vue3/SKILL.md --create-dirs "https://raw.githubusercontent.com/partme-ai/full-stack-skills/main/skills/vue-ui-skills/vant-vue3/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/vant-vue3/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How vant-vue3 Compares

Feature / Agentvant-vue3Standard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Provides structured guidance for Vant of Vue 3.0. Use when the user needs Vant with Vue 3, asks about mobile UI components such as Button, Cell, Form, Dialog, Toast, Popup, ConfigProvider, theme customization, project setup, or wants to implement mobile-first interfaces with vant or van- components.

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.

SKILL.md Source

# Vant of Vue 3

## When to use this skill

Use this skill whenever the user is working with **Vant for Vue 3** or asks for:

- Vant installation, setup, or project initialization
- Vue 3 mobile UI implementation with `vant`
- `van-button`, `van-cell`, `van-form`, `van-dialog`, `van-popup`, `van-toast`
- Vant `ConfigProvider`, theme variables, or theme customization
- Mobile-first page structure, touch-oriented UI, or form flows based on Vant
- Converting generic Vue 3 UI to Vant component usage
- Reviewing or fixing existing Vant Vue 3 code

Trigger terms include:

- `vant`
- `vant vue3`
- `Vant of Vue 3.0`
- `van-button`, `van-form`, `van-cell`, `van-dialog`, `van-toast`, `van-popup`
- `ConfigProvider`
- `theme-vars`
- `vant 组件`
- `Vant 主题定制`

## Scope and alignment

This skill is aligned to the official Vant documentation entry points:

- Official website: https://vant-ui.github.io/
- Official guide: https://vant-ui.github.io/vant/#/zh-CN

The local skill content only claims coverage for files that actually exist in this skill directory. Do **not** reference non-existent local files. If the requested Vant component is not covered by a local example file, use the official guide as the primary reference and reuse the closest local pattern.

For the exact local-to-official mapping, read:

- `references/official-mapping.md`

## How to use this skill

### Step 1: Identify the request area

Map the user request to one of these areas:

1. **Quick start / setup**
   - Installing Vant
   - Importing styles
   - Full import vs on-demand import
   - Vue 3 project bootstrap

2. **Component implementation**
   - Button
   - Cell
   - Form
   - Dialog
   - Toast
   - Popup

3. **Global config and theming**
   - `ConfigProvider`
   - `theme-vars`
   - Theme customization

4. **API lookup**
   - Common props
   - Component props/events/methods
   - Global config API

5. **Template or scaffold**
   - Project setup template
   - Reusable component structure

### Step 2: Load only the matching files

Use the smallest relevant set of files.

#### A. Quick start / setup

- `examples/getting-started/installation.md`
- `examples/getting-started/basic-usage.md`
- `templates/project-setup.md`

Use these when the user asks how to install Vant, register components, import CSS, or start a Vue 3 + Vant project.

#### B. Covered component examples

Use only the component file that matches the user request:

- Button → `examples/components/button.md`
- Cell → `examples/components/cell.md`
- Form → `examples/components/form.md`
- Dialog → `examples/components/dialog.md`
- Popup → `examples/components/popup.md`
- Toast → `examples/components/toast.md`

#### C. Global config and theme

- `api/config-provider.md`
- `examples/advanced/theme-customization.md`

Use these for `ConfigProvider`, dark/light theme handling, `theme-vars`, CSS variables, or global UI behavior.

#### D. API lookup

- `api/components.md`
- `api/config-provider.md`

Use these when the user needs prop names, event names, method names, or a quick API summary.

#### E. Official navigation and coverage boundaries

- `references/official-mapping.md`

Use this file when:

- You need to confirm what this skill covers locally
- You need to route the user from an official Vant section to a local file
- You need to handle a Vant component that is not yet covered by a local example

### Step 3: Follow the response workflow

When answering with this skill:

1. Confirm the target is **Vant for Vue 3**, not another Vue UI library.
2. Pick the matching local example or API file.
3. Keep code examples in **Vue 3 Composition API** style.
4. Preserve Vant naming and usage conventions:
   - import from `vant`
   - use `van-` components in templates
   - import `vant/lib/index.css` where setup requires it
5. Prefer mobile-first structure and touch-oriented interaction patterns.
6. If the requested component is not covered locally:
   - say that the local skill does not contain a dedicated example file for that component
   - route via `references/official-mapping.md`
   - use the official guide as the primary source of truth
   - adapt the closest covered local example style instead of inventing fake local files

## Local navigation map

This is the actual local navigation surface for the skill.

### Getting started

- `examples/getting-started/installation.md`
- `examples/getting-started/basic-usage.md`
- `templates/project-setup.md`

### Components covered locally

- `examples/components/button.md`
- `examples/components/cell.md`
- `examples/components/form.md`
- `examples/components/dialog.md`
- `examples/components/popup.md`
- `examples/components/toast.md`

### Theme and global configuration

- `api/config-provider.md`
- `examples/advanced/theme-customization.md`

### API summaries

- `api/components.md`
- `api/config-provider.md`

### Official mapping

- `references/official-mapping.md`

## Working rules

### Do

- Use only local files that actually exist
- Keep answers anchored to the official Vant guide structure
- Prefer concrete component code over abstract explanation
- Use `script setup` style for Vue 3 examples unless the user already uses another style
- Mention `ConfigProvider` when the user asks about global theme or locale-like app-wide config
- Keep code samples runnable and focused

### Do not

- Do not reference `icon.md`, `tabs.md`, `navbar.md`, or other files that do not exist in this skill
- Do not pretend this skill has full local coverage for every Vant component
- Do not mix Vant patterns with Element Plus, Ant Design Vue, or other UI libraries
- Do not output generic Vue UI advice when the user explicitly asks for Vant

## Answer patterns

### If the user asks for setup

Load:

- `examples/getting-started/installation.md`
- `templates/project-setup.md`

Return:

- install command
- CSS import
- registration strategy
- minimal Vue 3 + Vant starter

### If the user asks for a covered component

Load:

- the matching file under `examples/components/`
- `api/components.md` if props/events are involved

Return:

- minimal example first
- then props/events/method notes
- then usage pitfalls if relevant

### If the user asks for theme customization

Load:

- `api/config-provider.md`
- `examples/advanced/theme-customization.md`

Return:

- `ConfigProvider` usage
- `theme-vars` example
- CSS variable strategy
- scope and inheritance notes

### If the user asks for an uncovered Vant component

Load:

- `references/official-mapping.md`
- nearest covered local file

Return:

- explicit note that the local skill has no dedicated example file for that component
- route to the official Vant guide section
- provide a Vant-consistent example following the same conventions used in this skill

## Quality checklist

Before responding, verify that:

- the answer is specifically for **Vant of Vue 3**
- all referenced local files exist
- imports come from `vant`
- examples use Vue 3 syntax
- setup examples include CSS import where needed
- theme answers use `ConfigProvider` / `theme-vars` consistently

## Resources

- Official website: https://vant-ui.github.io/
- Official guide: https://vant-ui.github.io/vant/#/zh-CN
- Local official mapping: `references/official-mapping.md`

## Keywords

Vant, Vant Vue 3, Vant of Vue 3.0, Vue 3 mobile UI, van-button, van-cell, van-form, van-dialog, van-toast, van-popup, ConfigProvider, theme-vars, mobile-first UI, Vant theme, Vant setup, Vant component library, vant 组件, vant vue3, 移动端组件库, 按钮, 单元格, 表单, 对话框, 提示, 弹出层, 主题定制

Related Skills

layui-vue3

261
from partme-ai/full-stack-skills

Provides comprehensive guidance for Layui Vue component library including components, layer dialogs, and utilities. Use when the user asks about Layui Vue, needs to use Layui components in Vue 3, or implement UI components.

element-plus-vue3

261
from partme-ai/full-stack-skills

Provides comprehensive guidance for Element Plus Vue 3 component library including installation, components, themes, internationalization, and API reference. Use when the user asks about Element Plus for Vue 3, needs to build Vue 3 applications with Element Plus, or customize component styles.

bootstrap-vue3

261
from partme-ai/full-stack-skills

Provides comprehensive guidance for Bootstrap Vue 3 component library including Bootstrap components, grid system, utilities, and Vue 3 integration. Use when the user asks about Bootstrap Vue 3, needs to use Bootstrap components in Vue 3, or implement responsive layouts.

vue3

261
from partme-ai/full-stack-skills

Guidance for Vue 3 using the official guide and API reference. Use when the user needs Vue 3 concepts, patterns, or API details to build components, apps, and tooling.

uview-pro-vue3

261
from partme-ai/full-stack-skills

Builds Vue 3 mobile UIs in uni-app using the uView Pro component library (100+ components). Covers Button, Form, List, Modal, Tabs, NavBar, plus built-in HTTP, storage, router, and validator utilities. Use when the user needs to create uni-app interfaces with uView Pro, configure themes, or use uView Pro utility tools.

stitch-vue-vant-components

261
from partme-ai/full-stack-skills

Convert Stitch designs into modular Vite + Vue 3 + Vant 4 mobile components. Use when the user mentions Vant or Vue Mobile conversion from Stitch. Retrieves screen HTML via Stitch MCP get_screen, maps Tailwind to Vant tokens (mobile-first 375px, safe area), enforces Vue SFC structure with Vant 4 components (van-button, van-field, van-nav-bar, van-tabbar).

stitch-ui-design-spec-vant

261
from partme-ai/full-stack-skills

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.

pencil-ui-design-system-vant

261
from partme-ai/full-stack-skills

Initialize Vant 4 design tokens and component overview frames in a Pencil .pen file. Use when the user mentions Pencil with Vant or Vant 4, needs to set up Vant color palette and typography variables, or wants to create component library frames for Button, Cell, Form, Dialog, and other Vant components.

vuex-vue2

261
from partme-ai/full-stack-skills

Provides comprehensive guidance for Vuex 2.x state management in Vue 2 applications including state, mutations, actions, getters, modules, and plugins. Use when the user asks about Vuex for Vue 2, needs to manage state in Vue 2 applications, or implement Vuex patterns.

vue2

261
from partme-ai/full-stack-skills

Provides comprehensive guidance for Vue 2.x development including Options API, components, directives, lifecycle hooks, computed properties, watchers, Vuex state management, and Vue Router. Use when the user asks about Vue 2, needs to create Vue 2 components, implement reactive data binding, handle component communication, or work with Vue 2 ecosystem tools.

vue-router

261
from partme-ai/full-stack-skills

Provides comprehensive guidance for Vue Router including route configuration, navigation, dynamic routes, nested routes, route guards, programmatic navigation, and route meta. Use when the user asks about Vue Router, needs to set up routing, implement navigation guards, handle route parameters, or manage route transitions.

vue-router-v4

261
from partme-ai/full-stack-skills

Provides comprehensive guidance for Vue Router v4 including route configuration, navigation, nested routes, route guards, and Vue 3 integration. Use when the user asks about Vue Router v4, needs to set up routing for Vue 3 applications, implement navigation guards, or work with Vue Router v4 features.