VARLET
Material design mobile component library for Vue3
Intro
Varlet is a Material design mobile component library developed based on Vue3, developed and maintained by varletjs community team.
Features
๐ ย Provide 60+ 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 the Typescript๐ช ย Make sure more than 90 percent unit test coverage, providing stability assurance๐ ๏ธ ย Support dark mode๐ ๏ธ ย Provide official VSCode extension
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/uiimport App from './App.vue'
import Varlet from '@varlet/ui'
import { createApp } from 'vue'
import '@varlet/ui/es/style'
createApp(App).use(Varlet).mount('#app')Playground
See Varlet UI Playground.
Contribution
See Contributing Guide.
Start On Cloud IDE
See Cloud IDE.
Community
We recommend that issue be used for problem feedback, or others:
- Wechat group
- Join the Discord
