Installation
Prerequisites
Required
- Vue
3.3+. - Typescript
4.8+.- Compatible with plain javascript.
- Text Editor with Vue syntax support.
- VSCode is recommended, along with the official Vue extension.
Optional
- Nuxt
- Nuxt
3.1+, and check docs for Nuxt module
- Nuxt
- Pinia
- Pinia
2.2.5+
- Pinia
Schema libraries: Docs
- Zod
3.24+. - Valibot
1+. - ArkType
2+ - Any library using the Standard Schema Spec
sh
pnpm add @regle/core @regle/rulessh
npm install @regle/core @regle/rulessh
yarn add @regle/core @regle/rulessh
bun add @regle/core @regle/rulesDevtools
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.
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');
