kennethklee / nega-toast

Simple toast web component.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nega-toast

<nega-toast>

Simple toast web component

Published on webcomponents.org

See: Documentation, Demo.

Usage

Installation

npm install --save nega-toast

In an html file

<html>
  <head>
    <script type="module">
      import 'nega-toast/nega-toast.js';
    </script>
  </head>
  <body>
    <nega-toast>Hi!</nega-toast>
  </body>
</html>

Contributing

Feel free to fork and send over PRs. Still a lot of places this can be improved, i.e. styling, more options, or better behaviors.

Installation

git clone https://github.com/kennethklee/nega-toast
cd nega-toast
npm install

Running locally

$ npm start

Running tests

$ npm test

About

Simple toast web component.


Languages

Language:HTML 50.1%Language:JavaScript 49.9%