@highlighters/vue

Vue composable and component for realistic highlighter marks
5,120 255
Install
npm install @highlighters/vue
Latest Version:2.0.0
Vue:3
License:MIT
Last Updated:Oct 18, 2026
Links: GitHub  ·  npm
Maintainer: jace-things

@highlighters/vue

Vue bindings for @highlighters/core - realistic highlighter-pen marks for web text. Wet-ink colour, organic frayed edges, true multiply-blend optics, drawn over your text without altering it.

Install

npm install @highlighters/vue

@highlighters/core is bundled in as a dependency, so you do not install it separately. Vue 3.3+ is a peer dependency.

Usage

<script setup>
import { Highlight } from "@highlighters/vue";
</script>

<template>
  <p>
    The part that matters most is
    <Highlight :options="{ color: { palette: 'fluorescent', swatch: 'yellow' } }">
      this exact sentence
    </Highlight>.
  </p>
</template>

Highlight renders a <span> by default; set as for any other tag. For highlighting an element you hold a template ref to, use the composable:

<script setup>
import { ref } from "vue";
import { useHighlight } from "@highlighters/vue";

const el = ref(null);
useHighlight(el, { color: { palette: "mild", swatch: "blue" } });
</script>

<template><p ref="el">Highlighted on mount, updated when options change.</p></template>

Documentation

Full guides, the options reference, and live demos live at highlighte.rs and in the repository.

License

MIT

Related Packages

vue-text-highlight

Text highlighter for Vue.js

853,463 326
@nigmatulin8/text-highlighter-vue2

Vue 2 component for highlighting text in HTML

352 0
@nigmatulin8/text-highlighter-vue3

Vue 3 component for highlighting text in HTML

344 0
vue-device-placement

Vue 3 设备打点组件 —— 在底图上拖拽标注设备位置,输出归一化坐标点位数据。

1,293 0
vue-highlight-words

Vue component to highlight words within a larger body of text

625,582 80

Version History

Version Released License
2.0.0 MIT
1.2.0 MIT
1.1.2 MIT
1.1.1 MIT
1.1.0 MIT