Skip to content

24webcomponents/spoiler-alert-element

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

<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.

About

Don't spoil things!

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •