vue-no-orphans
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

vue-no-orphans

Ensures titles never line break into a single orphan word.

Notice: currently the directive doesnt work too well with HMR

Example

without Title breaks into a orphan word

using the v-no-orphans directive Breaks into minimum two words

installation

npm i vue-no-orphans

Globally install the plugin

import { createApp } from 'vue';
import { VueNoOrphansPlugin } from 'vue-no-orphans';

const app = createApp(App);
app.use(VueNoOrphansPlugin);

Use the v-no-orphans directive on your titles

<div>
  <h1 v-no-orphans>keep atleast two works on the last line</h1>
</div>

Package Sidebar

Install

npm i vue-no-orphans

Weekly Downloads

5

Version

1.0.1

License

ISC

Unpacked Size

2.6 kB

Total Files

4

Last publish

Collaborators

  • madsleejensen