varlet
varlet is an open-source Vue project in the testing space with 5.3k GitHub stars. The repository is actively maintained, with recent commits.
MITPermissive — free to use in commercial and proprietary software, with attribution.View license →
Production readiness
4/5- Actively maintainedCommits in the last 6 months
- No known vulnerabilitiesNot yet scanned
- Clear, usable licenseMIT (permissive)
- Proven adoptionWidely used
- Has documentationDocumentation indexed
npm install varletIntro
Varlet is a Vue3 component library based on Material Design 2 and 3, supporting mobile and desktop, developed and maintained by varletjs organization.
Features
🚀 Provide 70+ high quality general purpose components
🚀 Components are very lightweight
💪 Developed by Chinese, complete Chinese and English documentation and logistics support
🛠️ Support on-demand introduction
🛠️ Support theme customization
🌍 Support internationalization
💡 Support WebStorm syntax highlighting
💪 Support the SSR
📦 Support Nuxt Module
💡 Support the Typescript
💪 Make sure more than 90 percent unit test coverage, providing stability assurance
🎨 Supports both Material Design 2 and Material Design 3 design systems
🛠️ Support dark mode
🔧 Provide official VSCode extension
⌨️ Support Accessibility (still improving)
Install
CDN
varlet.js contain all the styles and logic of the component library, and you can import them.
<div id="app"></div>
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<!-- Desktop Adaptation -->
<script src="https://cdn.jsdelivr.net/npm/@varlet/touch-emulator/iife.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@varlet/ui/umd/varlet.js"></script>
<script>
const app = Vue.createApp({
template: '<var-button>Button</var-button>'
})
app.use(Varlet).mount('#app')
</script>
Webpack / Vite
# Install with npm or yarn or pnpm
# npm
npm i @varlet/ui -S
# yarn
yarn add @varlet/ui
# pnpm
pnpm add @varlet/ui
import App from './App.vue'
import Varlet from '@varlet/ui'
import { createApp } from 'vue'
import '@varlet/ui/es/style'
createApp(App).use(Varlet).mount('#app')
Official Ecosystem
The following projects are maintained by the official team for a long time.
NameDescription@varlet/cliVue3 component library rapid prototyping tool@varlet/touch-emulatorDesktop adapter, so that the mobile component library can run on the desktop@varlet/ui-playgroundVarlet component library online editing tool@varlet/import-resolverA resolver for unplugin-vue-components used to implement Varlet and import it on demand@varlet/preset-unocssUnoCss presets for varlet@varlet/preset-tailwindcsstailwindcss presets for varletvarlet-theme-builderTheme generator for generating theme variables for varlet Material Design 3varlet-vscode-extensionVarlet Component Library VSCode Pluginvscode-theme-varletVarlet VSCode Themevarlet-app-exampleVarlet component library app templatevarlet-install-exampleCase collection of Varlet component library and various ecosystem integration
Community Ecosystem
The following projects are maintained by community personnel, welcome to add.
NameDescriptionvue-h5-templateVue-based mobile template scaffolding, providing mobile presets for Varlet component librarycreate-vite-appA desktop template scaffolding based on Vue3, providing desktop presets for Varlet component libraryvscode-common-intellisenseA VS Code extension that provides better intellisense to Varlet developersvue3-varlet-mobileA mobile template based on Vue 3 and Varlet Component Library
Playground
See Varlet UI Playground.
Contribution
See Contributing Guide.
GitCode Repo
See Here.
Thanks to contributors
Thanks to the following sponsors
Sponsor this project
Sponsor this project to support our better creation.