Custom solutions for Vue projects.
To install vuenex
simply run (yarn or npm):
yarn add -D vuenex
npm i -D vuenex
- useBlur (Function) → Removes
focus
from a specific element. - useFocus (Function + Directive) → Sets
focus
on a specific element. - useVisibility (Function) → Checks an element
visibility
within the viewport.
- useClick (Function + Directive) → Triggers custom actions on element
click
. - useClickOutside (Function + Directive) → Detects clicks
outside
of an element. - useEvent (Function) → Sets
event
on a specific target.
- useOnBeforeUnmount (Function) → Checks if
onBeforeUnmount
hook is called inside of a component lifecycle. - useOnMounted (Function) → Checks if
onMounted
hook is called inside of a component lifecycle. - useUnref (Function) → Checks the
ref
value. - utils (Utilities) → A set of useful
utilities
.
- VueNex (Plugin) → Activates all
directives
globally.
Check out the Contributing Guide for more info.
Copyright © Ivo Dolenc
Developed in Croatia 🇭🇷