Components

BaseAlert

An inline message about the page, with an optional title and actions, readable in both themes.

components/ui/BaseAlert.vue
View in the demo

Types

A new version is available. Refresh to update.
Your changes were saved.
Your trial ends in 3 days.
Update available
A new version is available. Refresh to update.
Saved
Your changes were saved.
Trial ending
Your trial ends in 3 days.

Actions and icon

Trial ending
Your trial ends in 3 days.
Any Lucide icon can replace the default one.

API

Props

Name
Type
Default
Description
typeAlertType"info"info, success, warning or error.
titlestring—A bold first line. With it, the text switches to the normal text colour.
textstring—The message. The default slot replaces it.
iconstring—Replaces the default icon of the type.
action-textstring—Adds one action button.
action-loadingboolean—Shows that button loading.

Slots

Name
Slot props
Description
#default—Replaces text.
#actions—Several buttons; they get the surface background automatically.

Events

Name
Payload
Description
@action—The action button was pressed.

Accessibility

Errors use role="alert" and are announced at once; the other types use role="status". Every light-theme status colour keeps a 4.5:1 contrast against its tint.

© 2026 melsami UI.
Developer documentation for melsami UI.