vue-unorphan

A Vue directive that implements the "unorphan" package
2,713 2
Install
npm install vue-unorphan
Latest Version:1.2.3
License:MIT
Last Updated:Sep 3, 2026
Links: GitHub  ·  npm
Maintainer: weotch

vue-unorphan

A Vue directive that implements unorphan.

Install

yarn add vue-unorphan or npm install --save vue-unorphan

Vue
Vue = require('vue')
Vue.directive('unorphan', require('vue-unorphan'))
Nuxt

In nuxt.config.js:

{
  modules: [ 'vue-unorphan/nuxt/module' ]
}

Usage

Use in a Vue template like:

<h1 v-unorphan>A long title with many words that will wrap to multiple lines</h1>

Example

Before:

After:

Related Packages

vue

The progressive JavaScript framework for building modern web UI.

468,054,189 54,906
vue
eslint-plugin-vue

Official ESLint plugin for Vue.js

266,364,830 4,591
@vueuse/shared
260,835,866 22,398
@vitejs/plugin-vue

The official plugin for Vue SFC support in Vite.

257,315,514 686
@vueuse/core

Collection of essential Vue Composition Utilities

256,285,643 22,398

Version History

Version Released License
1.2.3 MIT
1.2.2 MIT
1.2.1 MIT
1.2.0 MIT
1.1.1 MIT