Skip to content

SonicGarden/bs-toast-element

Repository files navigation

<bs-toast> element

Installation

$ npm install @sonicgarden/bs-toast-element

Usage

import { openToast } from '@sonicgarden/bs-toast-element'

openToast('Hello, world', { bgColor: 'success', delay: 5000 })

Refer to the type definitions for more options.

Browser support

Browsers without native custom element support require a polyfill.

  • Chrome
  • Firefox
  • Safari
  • Microsoft Edge

Development

pnpm i
pnpm dev

License

Distributed under the MIT license. See LICENSE for details.