toaster
v4.15.0arrow_drop_downv4.15.0
STATUS
Passing
DOWNLOADS
211
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
5 years ago
SIZE
N/A
The toaster is used to show toasts (alerts) on top of an overlay. The toasts will close themselves when the close button is clicked, or after a timeout — the default is 5 seconds.
1 contributor
Like
Install toaster as a package?
Copied
npm i @bit/segmentio.evergreen.toaster
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example modifieddraft
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
No preview available
chevron_left
chevron_right
The Toaster manages the interactionsb between the ToasterManger and the toast API.
Properties
Name | Type | Default value | Description |
---|---|---|---|
zIndex | number | The z-index of the toast. | |
duration | number | Duration of the toast. | |
onRemove | function | Function called when the toast is all the way closed. | |
intent | 'none' | 'success' | 'warning' | 'danger' | 'none' | The type of the alert. |
title | node | The title of the alert. | |
children | node | Description of the alert. | |
hasCloseButton | bool | When true, show a close icon button inside of the toast. | |
isShown | bool | When false, will close the Toast and call onRemove when finished. | |
bindNotify (required) | function | Function called with the | |
bindGetToasts (required) | function | Function called with the | |
bindCloseAll (required) | function | Function called with the |