Skip to content
origamorigam
v2.37.42
Theming
6 directives — Vue 3

Templatedirectives.

Six runtime directives that extend any Vue template. From click-outside detection to ripple effects, swipe gestures, viewport tracking, hover classes, and WCAG contrast enforcement.

6 directives — globally registered

API REFERENCE

All directives.

  • v-click-outside

    Calls a handler when a click lands outside the bound element. Supports Shadow DOM via handleShadow() and an optional closeConditional guard to suppress the callback.

    directive
  • v-contrast

    Automatically adjusts foreground text colour to meet the WCAG AA contrast ratio (4.5:1 by default, configurable via createOrigam). Pass false to opt out on a specific element.

    directive
  • v-hover

    Toggles a CSS class on an element while the pointer is over it. Supports a callback mode (.callback modifier) and propagation stop (.stop modifier).

    directive
  • v-intersect

    Wraps the IntersectionObserver API. Fires a callback each time the element enters or leaves the viewport. Supports .once to disconnect after the first entry and .quiet to skip the initial call on mount.

    directive
  • v-ripple

    Applies a Material-style ripple animation emanating from the click position. Supports centered ripples, circular clipping, custom CSS classes and propagation stop.

    directive
  • v-touch

    Attaches touch event listeners (touchstart, touchend, touchmove) and recognises swipe gestures (left, right, up, down). All handlers are optional; only attach what you need.

    directive
origamorigam

The Vue 3 design system that just works.

Product

  • Charts
  • Themes

Resources

  • GitHub
  • Discord
  • Discussions
  • Twitter
  • Support origam

Legal

  • MIT License
  • Privacy
  • Contact

Introduction

  • Why origam?
  • Stability
  • Roadmap
  • Changelog

Getting started

  • Installation
  • Wireframe

Features

  • Components
  • Directives
  • Composables
  • Types
  • Enums
  • Interfaces
  • Utils
  • Constants
  • Stories
  • Docs

© 2026 origam · MIT

Made with origam, by humans.

Support origam