spoiler-alert-element
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

<spoiler-alert> element

Don't spoil things!

Installation

Available on npm as spoiler-alert-element.

$ npm install --save spoiler-alert-element

Usage

Script

Import as ES modules:

import 'spoiler-alert-element'

Include with a script tag:

<script type="module" src="./node_modules/spoiler-alert-element/dist/index.js">

Mask text until the user interacts with it!

<spoiler-alert>Hidden text</spoiler-alert>

Browser support

Browsers without native custom element support require a polyfill.

  • Chrome
  • Firefox
  • Safari
  • Microsoft Edge

License

Distributed under the MIT license. See LICENSE for details.

Readme

Keywords

none

Package Sidebar

Install

npm i spoiler-alert-element

Weekly Downloads

2

Version

0.0.1

License

MIT

Unpacked Size

6.79 kB

Total Files

7

Last publish

Collaborators

  • keithamus