Skip to content

Integrations

Nuxt

Adding Nuxt module will provide auto-imports for selected exports

Run this command into your nuxt app

bash
npx nuxi module add regle
sh
pnpm add @regle/core @regle/rules @regle/nuxt
sh
npm install @regle/core @regle/rules @regle/nuxt
sh
yarn add @regle/core @regle/rules @regle/nuxt
sh
bun add @regle/core @regle/rules @regle/nuxt

This exports will become globally available in your nuxt app

  • @regle/core
    • useRegle
    • createRule
    • defineRegleConfig
    • inferRules
  • @regle/rules Built-in rules are not injected to reduce risk of name conflict
    • ruleHelpers
    • withAsync
    • withMessage
    • withParams
  • @regle/zod (if present)
    • useZodRegle

Released under the MIT License. Logo by Johannes Lacourly