Skip to content

varletjs/varlet

dev
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

VARLET

Material design mobile component library for Vue3

Documentation(Vercel) | Documentation(Gitee) | ไธญๆ–‡README

version stars vue licence coverage gzip ci


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/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')

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

Thanks to contributors