0.1.0 • Published 2 years ago

@internetarchive/toast-manager v0.1.0

Weekly downloads
-
License
AGPL-3.0-only
Repository
github
Last release
2 years ago

Build Status codecov

Toast Manager Component

A Toast manager built on LitElement with support for custom content and light DOM elements.

Toast Manager

Installation

yarn add @internetarchive/toast-manager

Usage

<!-- index.html -->
<script type="module">
  import '@internetarchive/toast-manager';
  import { ToastConfig } from '@internetarchive/toast-manager';
</script>

<toast-template></toast-template>

Config Options

All of the config options:

const config = new ToastConfig();
config.texts = 'Thank you for your support!1111';
config.bgColor = 'black';
config.dismissOnClick = false;

const toastTemplate = document.querySelector('toast-template');
toastTemplate.showToast({
  config
});

Development

Prerequisite

yarn install

Start Development Server

yarn start

Testing

yarn test

Linting

yarn lint
0.1.0

2 years ago

0.0.1-alpha9

2 years ago

0.0.1-alpha10

2 years ago

0.0.1-alpha8

2 years ago

0.0.1-alpha7

2 years ago

0.0.1-alpha6

2 years ago

0.0.1-alpha5

2 years ago

0.0.1-alpha4

2 years ago

0.0.1-alpha3

3 years ago

0.0.1-alpha2

3 years ago

0.0.1-alpha1

3 years ago

0.0.1

3 years ago