0.5.2 • Published 1 year ago
@sonicgarden/bs-toast-element v0.5.2
<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.