Skip to content

Directix Playground

Configure directives interactively and generate code for Vue 2, Vue 3, composables, and Nuxt.

🎯 Code Generator v-debounce
Debounce function execution
Vue
<template>
  <div v-debounce="{
    handler: 'handleInput',
    wait: 300,
    leading: false,
    trailing: true
  }">
    <!-- Debounce function execution -->
  </div>
</template>

<script setup lang="ts">
import { ref } from 'vue'

// Directive options
const options = {
  handler: 'handleInput',
    wait: 300,
    leading: false,
    trailing: true
}
</script>

Quick Start

  1. Select a Directive - Choose from 57+ directives organized by category
  2. Choose Vue Version - Toggle between Vue 2 and Vue 3
  3. Select Output Format - Directive syntax or Composable function
  4. Copy Code - Click copy and paste into your project

Features

  • 57+ Directives - Full coverage of all Directix directives
  • 41+ Composables - Composable API for every directive
  • Vue 2 & Vue 3 - Generate code for either version
  • TypeScript Ready - Full type definitions included
  • 15 Categories - Organized by use case

Categories

CategoryDescriptionDirectives
EventEvent handlingv-click-outside, v-debounce, v-throttle, v-long-press, v-hover, v-hotkey, v-click-delay, v-click-wave, v-context-menu, v-copy
VisibilityVisibility controlv-lazy, v-intersect, v-visible, v-loading, v-blur, v-skeleton
ScrollScroll behaviorv-scroll, v-infinite-scroll, v-sticky, v-parallax, v-progress
InteractionUser interactionv-ripple
FormatText formattingv-uppercase, v-lowercase, v-capitalcase, v-number, v-money, v-truncate, v-ellipsis, v-trim
UIUI enhancementsv-tooltip, v-draggable, v-image-preview, v-countdown, v-watermark, v-print
FormForm handlingv-focus, v-mask
SecuritySecurity featuresv-permission, v-sanitize
ObserverDOM observationv-resize, v-mutation
PerformancePerformance optimizationv-virtual-list
MobileTouch & gesturesv-touch, v-swipe, v-pan, v-pinch, v-rotate-gesture, v-pull-refresh
AnimationAnimationsv-fade, v-typewriter, v-counter, v-lottie
DataData handlingv-export, v-highlight
MediaMedia controlsv-fullscreen
InputInput processingv-emoji

Usage Example

vue
<template>
  <!-- Use generated directive code here -->
  <input v-debounce="{ handler: handleSearch, wait: 300 }" />
</template>

<script setup>
import { ref } from 'vue'

const searchText = ref('')

function handleSearch(event) {
  console.log('Searching:', event.target.value)
}
</script>

v1.11.0 Features

  • 🏢 Enterprise Features - Permission management, audit logging, configuration center
  • Performance Optimization - Bundle size reduction, runtime performance improvements
  • 🛡️ Security Enhancements - Advanced XSS protection, CSP compatibility
  • 📊 Monitoring & Alerting - Performance metrics, health checks, alert rules

v2.0.0 Coming Soon

  • 🧩 Web Components Support - Use directives with Custom Elements
  • Vue 3 Conditional Optimizations - markRaw, shallowReactive enhancements
  • 🔄 Full Vue 2 Compatibility - Continued support for Vue 2.x

Resources

Released under the MIT License.