A UI Component Library Based on Vue3 and Typescript
we recommend that you use pnpm for installation.
Use pnpm
install
pnpm add @spicyrabbit/ui -S
Use yarn
install
yarn add @spicyrabbit/ui
Use npm
install
npm install @spicyrabbit/ui -S
we used vue@3.3.4 when developing this library, Due to some breaking changes in type definition of vue, if you want have code intelligence, you should upgrade your vue version to 3.3.4.
import { createApp } from 'vue'
import './style.css'
import Rabbit from '@spicyrabbit/ui'
import "@spicyrabbit/ui/theme/index.css"
import App from './App.vue'
createApp(App).use(Rabbit).mount('#app')
<template>
<MtButton></Mtbutton>
</template>
目前开发效果优先,在动效上使用了gsap做辅助,后期会逐步迁移到自己的动效库之上
当你fork源码并克隆到本地进行开发的时候,本项目提供了自动化组件创建工具 RabbitCli
用来简化整个开发流程。
你可以在项目的任何位置运行 pnpm exec rabbitCli
或者 pnpm run -w create
进行创建组件