Vant 3
Vant 3 is a mobile component library for Vue 3.
Features
- Support for Vue 3.0+
- 65+ high-quality components
- Support for on-demand import and Tree Shaking
- Support for theme customization
- Complete TypeScript support
- Server-side rendering support
- Nuxt 3 support
Installation
bash
# Install via npm
npm i vant@^3
# Install via yarn
yarn add vant@^3
# Install via pnpm
pnpm add vant@^3
Quick Start
js
import { createApp } from 'vue';
import { Button } from 'vant';
import 'vant/lib/index.css';
const app = createApp();
app.use(Button);
Browser Support
Vant 3 supports modern browsers and Chrome >= 51, iOS >= 10.0 (consistent with Vue 3).