Skip to content

RoxVVue3 组件库

一套轻量、可组合的基础 UI 组件、指令与 Hooks

安装

bash
pnpm add @a-drowned-fish/rox-v

全量引入

ts
import { createApp } from "vue";
import RoxV from "@a-drowned-fish/rox-v";
// import "@a-drowned-fish/rox-v/dist/style.css"; // 如果需要样式 (SSR OR SSG 建议引入, 避免页面样式闪烁)

createApp(App).use(RoxV).mount("#app");

按需引入

ts
import { Button, Input } from "@a-drowned-fish/rox-v";

export default {
    components: { Button, Input },
};

指令与 Hooks

ts
import { vLazy, vFade, useIntersectionObserver } from "@a-drowned-fish/rox-v";

基于 MIT 协议开源