Skip to content

Getting Started

  1. Install DireVue in your Vue 3 project:
bash
npm install direvue
bash
yarn add direvue
bash
pnpm add direvue
bash
bun add direvue
  1. Import and use directives in your components:
js
import { createApp } from "vue";
import "./style.css";
import App from "./App.vue";

import direvue from "direvue"; 
import "../node_modules/direvue/dist/direvue.css"; 

createApp(App)
    .use(direvue) 
    .mount("#app");
  1. Explore the documentation for each directive to unlock its full potential.