Socket
Socket
Sign inDemoInstall

markster

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

markster

a web component for highlighting text


Version published
Maintainers
1
Weekly downloads
319
decreased by-35.69%

Weekly downloads

Readme

Source

markster2

Built With Stencil

Markster: a web component for highlighting text.

Examples

TSX

import { Component, h, Host } from '@stencil/core';
import 'markster';

@Component({
  tag: 'my-component'
})
export class MyComponent {

  render() {
    return <Host>
      <mark-ster 
      text={'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque porta eros nibh, a iaculis nisl congue vitae.'} 
      searchWords={'ipsum iaculis elit'} />
    </Host>;
  }
}

HTML

<script src='https://unpkg.com/markster@latest/dist/markster.js'></script>

<mark-ster 
      text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque porta eros nibh, a iaculis nisl congue vitae." 
      search-words="ipsum iaculis elit"></mark-ster>

Using this component

Script tag

  • Put a script tag similar to this <script src="https://unpkg.com/markster@latest/dist/markster.js"></script> in the head of your index.html
  • Then you can use the element anywhere in your template, JSX, html etc

In a stencil project

  • Run npm install markster --save
  • Add an import to the npm package import 'markster';
  • Then you can use the element anywhere in your stencil project.

Keywords

FAQs

Last updated on 01 Jun 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc