An open API service indexing awesome lists of open source software.

https://github.com/43081j/keyword-mark-element

Simple web component to mark keywords in a string
https://github.com/43081j/keyword-mark-element

highlight js mark webcomponents

Last synced: over 1 year ago
JSON representation

Simple web component to mark keywords in a string

Awesome Lists containing this project

README

          

# ``

A simple web component to mark keywords in a string.

[Demo](https://keyword-mark.glitch.me)

## Usage

Install:

```
$ npm i -S keyword-mark-element
```

Include:

```html

```

Or in JavaScript:

```ts
import "./node_modules/keyword-mark-element/lib/keyword-mark.js";
```

Use:

```html
foo bar baz
```

Essentially, any keywords specified in the `keywords` attribute will be
highlighted in the text content of the element.

## License

MIT