Skip to content
Toast content
Toast text Toast text Toast text Toast text
Toast text Toast text Toast text 23:59
Toast - Web Component
The Toast component can be used imported from:
Playground
Parameters
...
Slots
This component has slots. Check the documentation about how to use the slots.
Name | Tags | Description |
---|---|---|
default | span | The content of the toast |
timestamp | span | The timestamp of the toast |
Parameters use
content
The thing to be assigned to the toast. It uses the default
slot too.
config
The config
parameter is used to define the toast status
. Possible values are: info
, alert
, negative
, positive
. Being omitted, the default value is info
.
timestamp
The timestamp
parameter is used to define the time to be displayed in the toast. The format must be HH:mm
.
You can also set the timestamp using the timestamp
slot.
Browser support
Detected engine:
Chromium
Webkit
Gecko