Toast
Toast
PToast shows a transient notification with optional progress timer.
Demo
Usage
<PToast message="Saved" type="success" :timer="4000" @close="removeToast" />Props
| Prop | Type | Default | Notes |
|---|---|---|---|
message | String | '' | Toast body text. |
type | String | info | main, complementary, success, warning, danger, info. |
timer | Number | 0 | Auto-dismiss duration in ms (0 = no timer). |
Events
| Event | Payload | Description |
|---|---|---|
close | — | Emitted when user clicks the close icon. |
Slots
| Slot | Description |
|---|---|
| default | Override the message content. |