Vant is Youzan Front end Team The open source mobile component library was opened in 2016 and has been maintained for 4 years. Vant carries all core businesses of Youzan internally and serves more than 100000 developers externally. It is one of the mainstream mobile terminal component libraries in the industry.
At present, Vant officially provides Vue version and WeChat applet version And maintained by the community team React Version 。
characteristic
- Excellent performance, the average volume of components is less than 1KB (min+gzip)
- 65+high-quality components, covering mainstream scenarios on mobile terminals
- Written using TypeScript to provide complete type definitions
- Unit test coverage exceeds 90%, providing stability guarantee
- Provide complete Chinese and English documents and component examples
- Provide Sketch and Axure design resources
- Support Vue 2, Vue 3 and WeChat applet
- Support theme customization, built-in 700+theme variables
- Support on-demand import and Tree Shaking
- Support server side rendering
- Support internationalization and language pack customization
Lightweight
As a mobile component library, Vant
Light weight has always been the core development concept. In order to balance the contradiction between increasingly rich functions and lightweight, Vant uses many optimization methods internally, including supporting component loading on demand, common module reuse, component compilation process optimization, etc.
After applying a series of optimization measures Vant
The average volume of the component is only 8.8KB, which is about 1KB after Uglify+Gzip.
Rich and practical business components
Vant not only provides basic UI components, but also adds many common business components in mobile malls to facilitate developers to quickly build mobile malls. Similar to address management, coupons, province, city and county selection.