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

Code copied

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.

Code copied

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.

Code copied

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.

Code copied

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.

Code copied

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.

Code copied

Animate

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

Code copied

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

Code copied

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.

Code copied

Title

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

Code copied

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

Code copied

Pagination

There are times when we need to show a lot of content to the user but we don’t want to extend the text and make the alert very large and tall

Code copied

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.

Code copied

Progress bar

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

Code copied

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.

Code copied

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

Code copied

API

PROPS

PropertyTypeValuesDescriptiondefaultExampleMore
v-modelbooleanbooleanDetermine if the component is visible.true
Usage
v-model:hidden-contentbooleanbooleanWith this property you can hide the content of the alert. You can bind this with v-model
Usage
colorStringprimarysuccessdangerwarningdarkRGBHEXChange the color of the component and some of its sub components.primary
Usage
typebooleansolidbordershadowgradientreliefChange the style of all the alert.default
Usage
pageNumberNumberDetermine the page that is active (this property is linked to the slots="page-{n}").
Usage
progressNumber0 - 100Add a progress bar to the alert and the value is the percentage of width.
Usage
closablebooleanbooleanAdd a button to close the alert (it is necessary to use v-model).
Usage
No matching data

SLOTS

PropertyTypeValuesDescriptiondefaultExampleMore
iconslotAdd an icon to the alert.
Usage
titleslotAdd a title to the alert.
Usage
page-{n}slot(page-1 - page-{n})Add the pages to the alert component if it is page one would be (slot="page-1").
Usage
No matching data
Last Updated: 2026-08-17, 08:33:54