Skip to content

Installation

Prerequisites

Required

Optional

Schema libraries: Docs


sh
pnpm add @regle/core @regle/rules
sh
npm install @regle/core @regle/rules
sh
yarn add @regle/core @regle/rules
sh
bun add @regle/core @regle/rules

Devtools

To enable devtools, you need to install the Regle plugin in your app.

TIP

If you use the @regle/nuxt module, the devtools will be automatically enabled.

main.ts
ts
import { createApp } from 'vue';
import { RegleVuePlugin } from '@regle/core';
import App from './App.vue';

const app = createApp(App);

app.use(RegleVuePlugin); // <--

app.mount('#app');

Released under the MIT License. Logo by Johannes Lacourly