The package exports a small set of reusable directives.
Focuses the root element or the first matching focusable child.
<DsInput v-autofocus v-model="email" type="email" />Use false to disable it or pass an options object with selector, preventScroll, and disabled.
Automatically resizes a textarea to its content.
<textarea v-autosize v-model="text" />Calls a handler when the user clicks outside the bound element.
<div v-click-outside="close">...</div>Maps hotkeys to handlers.
<div v-hotkey="{ Escape: close, 'Ctrl+K': openSearch }" />Mounts a loading overlay with DsLoading. The same feature is also available through createLoading().
<div v-loading="{ loading, text: loadingText, animated: true }">Content</div>