Alert
An inline notice bar for success, info, warning, or error messages, with support for a custom title and a close button.
Basic usage
Four types
No title
No title
Closable
Closable
Event feedback
Event feedback
API
Attributes
| Attribute | Description | Type | Default |
|---|---|---|---|
closeable | Whether to show the close button | boolean | — |
title | Title text | string | — |
type | Alert type | string | info |
Events
| Event | Description |
|---|---|
oas-close | Dispatched after the close button is clicked; the component then hides |
Slots
| Name | Description |
|---|---|
| default | — |
error uses role="alert", other types use role="status".