mirror of
https://github.com/withastro/astro.git
synced 2025-01-13 22:11:20 -05:00
18 lines
337 B
Markdown
18 lines
337 B
Markdown
|
---
|
||
|
"astro": minor
|
||
|
---
|
||
|
|
||
|
Adds support for emitting warning and info notifications from dev toolbar apps.
|
||
|
|
||
|
When using the `toggle-notification` event, the severity can be specified through `detail.level`:
|
||
|
|
||
|
```ts
|
||
|
eventTarget.dispatchEvent(
|
||
|
new CustomEvent("toggle-notification", {
|
||
|
detail: {
|
||
|
level: "warning",
|
||
|
},
|
||
|
})
|
||
|
);
|
||
|
```
|