mrkeyoor.comAsk

youzan/vanttested 02 Dec 2026commit 7cc4992

vant review

Use Vant for a Vue mobile web interface when its components cover your required screens.

  • Safety failed
  • Build 63 s
18 sto install
  • Tests pass
  • 455 packages
Webevaluationupdated 02 Dec 2026
-2stars / 7d

Vant is a Vue UI library for mobile web apps. Its README lists reusable components, TypeScript, custom themes and dark mode, and separates the Vue web package from Vant Weapp for WeChat mini programs.

Verdict

Use Vant for a Vue mobile web interface when its components cover your required screens. Our source build at commit 7cc4992 succeeded in 63 seconds and tests succeeded in 129 seconds. Choose another component source if your deadline depends on the open Table and Tree request being delivered.

Vant infographic: reusable Vue components for mobile web apps, plus its uses, our test result, pitfalls and who it suits
Tested 2 December 2026: the source install took 18 s and the build 63 s.

We ran it

Lab card: what happened when we ran vant
Lab card from our sandbox run
Screenshot of vant (vant.pro/vant)
vant.pro/vant
Install✓ · 18s455 packages · 528 MB
Build✓ · 63s
Tests✓ · 129sran, no count parsed
Repo1564 files~76,383 lines of source · 15.1 MB · 7 CI workflows

Answers from our run

Does vant build from source?

Dependencies installed in 18 seconds (455 packages), and the build succeeded in 63 seconds. We cloned commit 7cc4992 into a clean Debian container with 3 CPUs and no project-specific setup.

Do vant's tests pass?

Yes. The project's own test command exited successfully in 129 seconds, although its output did not expose an individual test count.

Who should not use vant?

Teams whose deadline depends on the open Table and Tree request being delivered.

What are the alternatives to vant?

Element, iView, Okee. Use Vant for a Vue mobile web interface when its components cover your required screens.

Setup3/5Our source checkout installed in 18 s and built in 63 s, a heavy install of 455 dependencies, and we did not run a README task.Editor’s note: Source installation, build and tests passed; setup and browser operation in a consuming application were not assessed.
Docs4/5The README has an install section (“Install”) and a usage section (“Quickstart”); we did not run its quickstart ourselves.Editor’s note: The README and migration excerpts support specific instructions, but documentation-wide accuracy was not assessed.
Community5/5Last push on 2026-12-01, 24,426 stars and maintainers answered or closed 10 of the 10 most-discussed issues we sampled.Editor’s note: Sampled discussions contain maintainer replies and user reports, without measuring support capacity or response times.
Maturity5/5Latest release v4.10.2 on 2026-08-31, repository created 2017-04-19 and its test suite passed in our sandbox.Editor’s note: The source commands passed, but current device reliability, application operation and upgrade outcomes were not assessed.

How we score

Who it’s for

Vue teams building mobile web interfaces whose required controls match Vant's component set.
Existing Vant users reviewing picker data and JSX event listeners before a major-version upgrade.
Component-library authors interested in the separate Vant Cli tooling described by its maintainers.

Who it’s NOT for

Teams whose deadline depends on the open Table and Tree request being delivered.
Vue 2 projects expecting to use the same installation command as Vue 3 projects: the README directs them to Vant 2.
Teams seeking a WeChat mini-program installation through the Vue web package: the README identifies Vant Weapp as a separate project.

Setup reality

Our 2 December 2026 run at commit 7cc4992 installed with pnpm in 18 seconds, recording 455 dependencies and 528 MB on disk. The build succeeded in 63 seconds and tests succeeded in 129 seconds. The recorded sandbox configuration was 3 CPUs, 8 GB RAM and image label lab-node:22.

The README quickstart imports Button and vant/lib/index.css, then registers Button with a Vue application. It gives npm i vant for Vue 3 and npm i vant@latest-v2 for Vue 2. Installing the source workspace and adding the published package to an application are separate operations.

A separate deployment runner stopped because its required Compose file was absent. Its summary nevertheless claimed deployment, while its safety step failed and teardown returned ok. The source build and test results come from the independent build harness.

Our Vant source build succeeded in 63 seconds and its tests succeeded in 129 seconds at commit 7cc4992, as recorded in our sandbox measurements. Use Vant for a Vue mobile web interface when its controls cover your required screens. Choose another component source if your deadline depends on the open Table and Tree request being delivered. The useful selection question is whether Vant covers your hardest screen, especially when that screen combines structured data, file submission or custom picker state.

What people use Vant for

Vant is a Vue UI library for mobile web apps. Its project README supplies the project description and quickstart: import Button, import the component stylesheet and register Button with a Vue application. The README also lists TypeScript, custom themes, dark mode and server rendering. Those features describe the library's advertised scope; the application supplies its screens, data and business behavior. This separates choosing a component library from choosing an application framework that owns the rest of the project.

The README advertises 80+ components and a 1 KB average component size after minification and compression. Its component-size statement describes compressed components, whereas our 528 MB installation describes a development workspace. These figures answer different budgeting questions. A team selecting controls should start with the screen that is hardest to express using the available components, then consider how much application logic that screen needs around them.

Who What they used Reported outcome
Tutorial author 老尚, quoted by Tencent Cloud vue-cli and Vant for a mobile NetEase Yanxuan imitation The tutorial introduction describes the imitation project.
GitHub commenter lmfuture Vant for about six months The commenter reported a positive experience and replies to problems.
Youzan, according to chenjiahan Vant Cli for internal business component libraries The maintainer reported adoption in several internal libraries.
Bilibili creator 前端布莱克 Vue 3, Vite and Vant for a novel-app exercise The Bilibili listing names the project and creator.

Vant Cli has a separate role from the UI controls. The README ecosystem list describes it as a scaffold for a UI library, and chenjiahan's account concerns building component libraries inside Youzan. The same collection of teaching examples includes a BOSS recruitment-app imitation listed under a deleted Bilibili account. Together, these sources describe application exercises, personal use and library development, rather than one uniform adoption story.

What happened when we ran it

Our pnpm installation succeeded in 18 seconds, recording 455 dependencies and 528 MB on disk. These are our sandbox measurements from commit 7cc4992 on 2 December 2026. The recorded configuration was 3 CPUs, 8 GB RAM and image label lab-node:22. The build succeeded in 63 seconds and the test step succeeded in 129 seconds. These results describe the source workspace that the harness installed and ran.

Source-workspace step Recorded result What the measurement covers
Install Succeeded in 18 seconds 455 dependencies recorded; 528 MB on disk
Build Succeeded in 63 seconds The recorded source build step
Tests Succeeded in 129 seconds The recorded test step

The checkout contained 1,564 files, approximately 76,383 source lines and 15.1 MB of files. The repository scan recorded monorepo workspaces and seven CI workflow files, with no Dockerfile or tests directory found. The successful test step and the directory scan are separate observations: the scan's directory label does not overturn the command result. The source installation's disk use also differs from the size of a consuming application's browser assets.

The separate deployment attempt failed its safety step with the error "unsafe repo: none of compose.yaml, compose.yml, docker-compose.yaml, docker-compose.yml exists". That runner required a Compose file. Its run summary claimed deployment with its own Docker Compose and ports bound to 127.0.0.1, contradicting the safety failure. The teardown returned ok. The independent source build and tests retain their recorded successful outcomes.

Where people get stuck: styles, scale and structured data

Issue #9180 requests Table and Tree components and remains open in the December records. In the Table and Tree discussion, chenjiahan told CatsAndMice that Tree lacked a design specification and was not planned for addition. An earlier Table request, #3271, also exposed a difference in priorities: the maintainer described mobile Table scenarios as relatively uncommon, while tao1587 said tables occurred as frequently as pickers in their work.

Report What the person hit Response or outcome
ghostsatan in #5041 Components rendered without styles in a Vant 2 setup The reporter said manually loading index.css worked.
Participants in #1181 A 750px design produced small controls, or application styles converted while Vant styles remained in pixels chenjiahan updated the rem documentation; participants proposed different conversion and loader changes.
xiechao1211 in #3314 A custom Less theme did not override Vant variables The maintainer suggested importing index.less.
daowojia in #10341 Global CSS variable overrides appeared to be overwritten The user reported difficulty retaining the overrides.

Issue #1181 contains two distinct complaints: controls were too small, and styles passed through different conversion paths. Changing a conversion factor addresses a different part of the setup from changing which files a loader processes. For a screen affected by both, inspect an application control and a Vant control in the generated CSS. That comparison gives the scaling discussion a concrete starting point without adopting every configuration proposed in the thread.

Vant 4 changes picker columns and JSX listeners

The Vant 4 announcement identifies a redefined Picker columns structure and renamed Picker properties. Its Picker refactoring section places the item-height to option-height and visible-item-count to visible-option-num changes under Picker. It also describes changes to selected-value binding, instance methods and event parameters. An upgrade inventory should therefore include the data and handlers surrounding a picker, alongside the component's visible properties.

Area to review Supported migration detail Work to put on your upgrade list
Picker The announcement redefines columns and renames item-height to option-height and visible-item-count to visible-option-num Review columns data and locate those Picker property names.
Date/time selection The announcement splits DatetimePicker into DatePicker and TimePicker and changes their bound values to arrays Inventory date/time controls and consult the target release's component documentation.
Area The announcement identifies Area as a wrapper around Picker Consult version-matched Area documentation for its migration instructions.
JSX The research quotation requires camelCase listener names Search JSX event listeners as a separate upgrade task.

The Vant 4 JSX migration quotation says that event names used to listen to Vant components in JSX need camelCase formatting. Keep that requirement attached to JSX. A useful migration inventory names the component, its input data and the handler reading its events. That keeps a picker-heavy address form distinct from a screen that only displays a Button, rather than estimating both upgrades from their visual appearance.

An upload control still leaves backend integration work

A developer quoted by Tencent Cloud reported that Vant required them to implement backend file submission, while their iView and Element uploaders submitted to a configured endpoint. The uploader comparison concerns that integration behavior. It gives a concrete question for a team choosing a file control: which part selects a file, and which part sends it to the receiving service? Those are separate responsibilities in the developer's account.

The historical Vant 3 release-candidate discussion adds a device scenario to that integration question. In issue #7035, lg751551023 reported that taking a photo through Uploader failed on some Huawei phones. An application's acceptance checklist can name camera capture and backend receipt separately, with its chosen devices and authentication flow. The original report concerns camera uploads during the Vant 3 release-candidate period, rather than the source build measured here.

English documentation and project identity

The Vant README is in English and links documentation, Chinese and Japanese introductions. Its ecosystem table identifies Vant Weapp as WeChat MiniProgram UI and Vant Cli as a scaffold for UI libraries. The detailed maintainer conversations discussed here are largely Chinese. For a team reading a styling or migration thread, the package name, major version and target platform are more useful identifiers than the word Vant alone.

Creadev's installation page describes a different project and explicitly calls the npm vant package an unrelated Vue UI library. That Creadev installation page is a concrete name collision. For this review, the Vue library is the intended project: youzan/vant, with the installation commands and ecosystem documented in its own README. This identification also separates the web library from instructions intended for mini programs.

Vant vs Element, iView and Okee

Element and iView appear in a developer's uploader comparison; Okee appears as the reference in a component request. Those are specific reasons to investigate alternatives. The uploader account concerns backend submission, while issue #9180 links Okee's mobile Vue Table and Tree pages. Choose the comparison around the screen requirement that brought the alternative into consideration.

Alternative Why it appears When to investigate it
Element A developer reported uploader submission to a configured endpoint Investigate the reported endpoint submission behavior for your upload flow.
iView The same developer grouped its uploader with Element's Investigate that submission behavior if it determines your integration work.
Okee mobile Vue components The requester linked its Table and Tree pages Investigate it when structured mobile data determines your component choice.

A separate discussion in #5565 mentions Zent because byan wanted a desktop Vue library and said Zent used React. chenjiahan replied that a desktop Vue library was not planned then. That exchange explains the commenter's search for another option. It also shows why a project belonging to the same organization does not automatically satisfy the same framework or interface requirement.

Outdated claims, corrected

The Develop365 quickstart identifies itself as Vant v1.6.28 and recommends Vue CLI 3. Its historical quickstart belongs to that version, while the current README recommends Rsbuild and separates installation for Vue 3 from Vant 2 for Vue 2. A new application's starting instructions should follow that version distinction rather than treating the mirrored v1 page as general current guidance.

Tencent Cloud's aggregation places an npm vant installation beside a link called official documentation that points to vant-weapp. The aggregated installation snippets combine web and mini-program references, whereas the upstream ecosystem table names Vant Weapp separately. Choose the target platform before selecting an installation recipe. The correction concerns the combination of instructions, rather than a claim that the historical web tutorial never described a working project.

FAQ

Vue 3 projects use npm i vant; Vue 2 projects use npm i vant@latest-v2, according to the README installation section. Its quickstart then imports Button and vant/lib/index.css before registering Button. These commands answer the basic installation question, while the issue discussions below concern particular versions, build configurations or platform requests. The questions follow the tutorial topics and user reports associated with Vant.

How do I get started with Vant UI and Vue 3?

The README installs Vant with npm i vant for Vue 3. Its quickstart example imports createApp from Vue, Button from Vant and the component stylesheet, then calls app.use(Button). Follow that component-registration pattern within your application. The same README gives a separate Vant 2 installation command for Vue 2 and recommends Rsbuild for scaffolding.

How do I build a mobile app interface with Vue, Vite and Vant?

前端布莱克's Bilibili listing describes a Vue 3, Vite and Vant novel-app exercise. The tutorial listing supplies a project example, while the Vant README supplies the component registration and stylesheet imports. Its scaffold recommendation is Rsbuild. Keep the tutorial's chosen build tool distinct from the project's own recommendation when assembling your application's setup.

How do I install and use Vant in a uni-app project?

Vant's README identifies Vant Weapp as a separate WeChat MiniProgram UI project. Tencent Cloud's uni-app aggregation contains installation snippets involving Vant and mini-program references, which need to be read alongside that project distinction. Start by identifying the output platform and corresponding project. A web-package command beside a Weapp documentation link combines two different project identities in the same setup path.

Why do Vant components render without their styles after on-demand imports?

ghostsatan reported missing styles and said manually loading index.css worked in issue #5041. The current README quickstart explicitly imports vant/lib/index.css. Compare the stylesheet path and build configuration with that starting example, then isolate the missing styles in the application concerned. The reported workaround belongs to the older setup described in the issue, where the reporter also found that the sandbox example worked.

How do I configure rem conversion for Vant alongside a 750px design?

Issue #1181 contains a report that components became too small with a 750px design configuration. In the rem discussion, chenjiahan said Vant did not restrict rootValue and announced updated documentation. Inspect the design scale, root font size and emitted styles together. Those are separate inputs to the symptom described by users in that thread, which also contains a different complaint about styles missing conversion entirely.

Why does postcss-pxtorem convert my styles but leave Vant styles in pixels?

MinosIE reported that application styles converted while imported Vant styles remained in pixels in issue #1181. Participants discussed whether dependency styles were processed and proposed loader changes. Inspect the generated CSS and the files entering the conversion pipeline. That addresses the mixed-unit complaint directly, rather than changing the scale factor used for files already passing through conversion.

Does Vant provide mobile Table and Tree components?

The combined Table and Tree request, #9180, is open in the December records, and chenjiahan said Tree was not scheduled. The requester linked Okee's Table and Tree pages as references. If those controls determine your app's deadline, include another implementation in the selection decision rather than budgeting on delivery of the requested components.

Is there a desktop Vue version of Vant?

chenjiahan said a desktop Vue component library was not planned at the time of issue #5565. The README describes mobile web apps and separately lists a desktop touch emulator. Those descriptions concern different needs: operating mobile controls in a desktop browser and choosing a component catalog for a desktop application.

Will Vant Weapp support Alipay mini programs?

itbencn reported conversion bugs and incomplete rendering when moving Vant Weapp components to Alipay in issue #5565. chenjiahan replied that an official Alipay version was not planned then and suggested the community Vant-Aliapp project. The exchange concerns the separate Weapp project and an attempted platform conversion, which is a different installation decision from adding Vant to a Vue web application.

Why do Vant pickers and sliders stop responding to gestures on older iOS devices?

The maintainer attributed historical iOS 10.2 to 11.2 failures to Vue 2.6 event bubbling in issue #3015. The announcement described manual event binding from Vant 2.4 and recommended Vant 2.4.0 or later; it also named Vue 2.5.22 as a downgrade option. The discussion's CSS workaround restored scrolling while disabling click selection, so the two interactions need separate attention.

Why is Calendar initially blank when min-date, max-date and default-date are set?

Issue #5640 reports an initially blank Calendar in Vant 2.4.7 with Vue 2.6.11 on an iPhone 8p. The Calendar reproduction discussion describes dates appearing after scrolling, an updated reproduction with page navigation, and different results between the reporter and maintainer. The maintainer explained that Calendar renders the visible region and initially could not reproduce the problem on a computer.

How do I override Vant theme variables without having them overridden again?

daowojia reported global CSS variable overrides being overwritten in issue #10341. The README lists custom themes and dark mode, while issue #3314 discusses an older Less import approach and the maintainer's suggestion to import index.less. Keep the CSS-variable report and the Less workflow attached to their respective versions and configurations when deciding which instructions apply to an application.

What we have not tested yet

commit 7cc4992 passed the recorded source commands; the run did not exercise a completed application on physical phones. Current device reliability, accessibility conformance, final browser bundle size, upload behavior and migration outcomes remain outside these measurements. The lab-node:22 image label does not establish an actual runtime or operating-system version, and the test result includes no test count. The README's coverage and component-size statements are upstream claims rather than independent measurements here.

The failed deployment safety step leaves no completed browser workflow or screenshots from that route. The conflicting deployment summary is not additional execution evidence. We have not reproduced the rem configurations, theme overrides, historical gesture failures, Calendar behavior or Huawei camera report on the release a reader intends to ship. The readable migration excerpt ends before Area's change list; the JSX research quotation supports camelCase naming, without the exact listener example or template-compatibility statement previously attributed to it.

The Vant 3 release-candidate announcement marked Sku unavailable; its later disposition is unresolved by that historical announcement. xiechao1211 also reported that closing a loading Toast closed other Toast messages, and chenjiahan declined to split the implementation in issue #3314. The older Less report's attempted override, the global CSS-variable complaint and the proposed rem configurations do not establish a working recipe for current applications.

The tutorial listings and personal comments do not measure production outcomes, support response times or present-day platform compatibility. The alternatives were not compared side by side, and the uploader account is a developer's report rather than current competitor documentation. This text review also leaves rendered layout, automatic related links and recommendation modules untested. The next useful evaluation is the application's hardest screen in the exact release intended for shipment, including its picker data, structured content and file submission flow.

Alternatives

ProjectWhat it isPick it when
ElementNamed in a developer's comparison of uploader backend submission.Investigate it when the reported submission to a configured endpoint addresses your application's upload requirement.
iViewGrouped with Element in the same uploader integration account.Investigate its upload submission behavior when that integration determines your component choice.
OkeeIts mobile Vue Table and Tree pages were linked by the Vant feature requester.Investigate it when structured mobile data makes Table or Tree functionality central to your decision.

Sources

  1. Vant README and installation
  2. Vant Table and Tree request
  3. Vant 4 migration discussion
  4. Tencent Cloud tutorial and uploader aggregation
  5. Vant use reports and tooling discussion
  6. Bilibili Vant tutorial listings
  7. Develop365 historical Vant quickstart

More web reviews