@emanon/ema-toast
v0.5.0
Published
## Overall Used to notify a user of small information.
Downloads
36
Readme
ema-toast
Overall
Used to notify a user of small information.
Properties
| Property | Attribute | Type | Default | Description |
|-------------|-------------|---------------------|----------|--------------------------------------------------|
| icon
| icon
| string
| "" | Designates a specific icon |
| open
| open
| boolean
| false | Toast will be visible when true. |
| outlined
| outlined
| boolean
| false | Makes the background transparent and applies a thin border. |
| placement
| placement
| "top" \| "bottom"
| "bottom" | Position where to show on the window. |
| timeout
| timeout
| number
| 2000 | Time (in milliseconds) to wait until toast is automatically closed. Use -1 to keep open indefinitely. |
Events
| Event | Type | Description |
|-----------------|----------------------------------------|--------------------------------------------------|
| closed
| CustomEvent<{}>
| Fires when Drawer has closed. |
| opened
| CustomEvent<{}>
| Fires when Drawer has opened. |
| request-close
| CustomEvent<{ accept: () => void; }>
| Fires when the toast want to be closed.Call the function passed to accept. |
CSS Custom Properties
| Property | Description |
|-----------------------|-----------------------------------------|
| --ema-c-toast-color
| Applies specified color to the control. |