tulip-ui
v1.0.0-alpha.2
Published
A Vue 3 Component Library
Downloads
2
Readme
Tulip
一个使用 Vue3 和 TypeScript,搭配 Vite 打包工具构建的 UI 组件库。
安装
使用 npm 安装
npm install tulip-ui
全局引入
import 'tulip-ui/styles/index.css'
import { createApp } from 'vue'
import tulip from 'tulip-ui'
const app = createApp(App)
app.use(tulip)
按需引入
import { createApp } from 'vue'
import { TuButton, TuInput, TuSpace } from 'tulip-ui'
import 'tulip-ui/styles/vars.css'
import 'tulip-ui/styles/base.css'
import 'tulip-ui/styles/button.css'
import 'tulip-ui/styles/input.css'
import 'tulip-ui/styles/space.css'
const app = createApp(App)
app.use(TuButton)
app.use(TuInput)
app.use(TuSpace)