Skip to content

Vant 2

Vant 2 is a mobile component library for Vue 2.

Features

  • Support for Vue 2.6+
  • 60+ high-quality components
  • Support for on-demand import
  • Support for theme customization
  • TypeScript support
  • Server-side rendering support

Installation

bash
# Install via npm
npm i vant@^2

# Install via yarn
yarn add vant@^2

# Install via pnpm
pnpm add vant@^2

Quick Start

js
import Vue from 'vue';
import { Button } from 'vant';
import 'vant/lib/index.css';

Vue.use(Button);

Browser Support

Vant 2 supports modern browsers and Android >= 4.0, iOS >= 8.0.

Enterprise-level mobile solution based on Vant