0.5.1 • Published 2 years ago
@sonicgarden/bs-toast-element v0.5.1
<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.