0.1.4 • Published 6 years ago
vue-use-dom-utils v0.1.4
vue-use-dom-utils
A set of utilities using the vue 2 composition api for manipulating and reacting to the DOM.
Composition Functions
- MediaQuery
// Provides a readonly object of whether a set of breakpoints are active useProvideMediaQuery(breakpoints);// Injects the readonly object from the provider useMediaQuery<BreakPoints>(); - Theme
// Provides a readonly object of theme variables from the css useProvideTheme(theme);// Injects the readonly object from the provider useTheme<Theme>();
Directives
TransferDom
A directive to move an element to another location in the DOM Useful in situations such as z-index management for modals, popups etc.
Project setup
pnpm installCompiles and minifies for publishing
pnpm run build:libraryRun your unit tests
pnpm run test:unitLints and fixes files
pnpm run lint