Alert

Display contextual feedback messages for user actions and system state.

Alert

Default

Easily generate an alert with this component apart from functionalities such as hiding it and showing it color change and title icons among other things

Solid

You can change the style of the component by adding the solid property, the property is a boolean so you can add it without any value.

Border

You can change the style of the component by adding the border property, the property is a boolean so you can add it without any value.

Shadow

You can change the style of the component by adding the shadow property, the property is a boolean so you can add it without any value.

Gradient

You can change the style of the component by adding the gradient property, the property is a boolean so you can add it without any value.

Relief

You can change the style of the component by adding the relief property, the property is a boolean so you can add it without any value.

Animate

A beautiful and simple animation to show and hide the alert to the user

Color

Change the color of the entire alert with the color property

In this example you can click on the buttons and dynamically change the color value to display it in the component alert

Icon

Add an icon to the alert easily with the slot icon

Default icons

Sax Design Vue renders build-time Iconify SVG data. Built-in controls, such as close buttons in Alert or Popup, use SVG icons and require no external icon font. Use the #icon slot when a product needs another icon.

Find and use icons

Search Boxicons for a collection and copy its prefix:name value into SIcon.

Title

You can add a descriptive title to the alert with the slot="title"

Hidden Content Update

You can hide the content of an alert and just leave the title to display the content dynamically.

This prop can bind with v-model:hidden-content

Pagination

Use pagination when an Alert contains more content than should be shown at once.

Use the footer slot to add a footer to the alert where for example you can add interactions with the user such as a button or a checkbox.

Progress bar

You can add a progress bar to the alert with the progress property and a number of (0 - 100)

Closable

You can add a close alert icon with the closable property, the property is a boolean so you can add it without any value.

Time Close

If you need an alert to have time to hide, you can do so by joining some properties and few lines of code

API

PROPS

Property
Type
Values
Description
default
Example
More
v-model
boolean
boolean
Determine if the component is visible.
true
v-model:hidden-content
boolean
boolean
With this property you can hide the content of the alert. You can bind this with v-model
false
color
String
primarysuccessdangerwarningdarkRGBHEX
Change the color of the component and some of its sub components.
primary
type
boolean
solidbordershadowgradientrelief
Change the style of all the alert.
default
page
Number
Number
Determine the page that is active (this property is linked to the slots="page-{n}").
—
progress
Number
0 - 100
Add a progress bar to the alert and the value is the percentage of width.
—
closable
boolean
boolean
Add a button to close the alert (it is necessary to use v-model).
false

EVENTS

Event
Type
Description
default
Example
More
update:modelValue
Boolean
Fires when the alert visibility changes.
—
—
update:page
Number
Fires when paged alert content changes page.
—
—
update:hiddenContent
Boolean
Fires when expandable content is hidden or shown.
—
—

SLOTS

Slot
Scope
Description
default
Example
More
icon
null
Add an icon to the alert.
—
title
null
Add a title to the alert.
—
page-{n}
(page-1 - page-{n})
Add the pages to the alert component if it is page one would be (slot="page-1").
—
footer
null
Add a footer to the alert component.
—
Last Updated: 2026-10-28, 06:17:56 UTC
Copied