Alert
Notifications to the user at execution time with good animation and functionality
Default
To add a notification use the vs-alert
component. For the main parameter, pass the active
property that determines if the alert is visible or not.
Title
Add a title to the alert with the property title
.
Lorem ipsum dolor sit amet
Color
You can change the color of the alert with the property color
. You are able to use the Main Colors or RGB and HEX colors.
WARNING
Only RGB and HEX colors are supported.
Primary
Success
Danger
Danger
Dark
RGB
HEX
Closable
You can show and hide the alert by means of active.sync
and a Boolean bind as value.
The property to determine if the alert can be closed is closable
.
You can also change the icon used for the close buton on the alerts.
TIP
Vuesax uses the Google Material Icons font library by default. For a list of all available icons, visit the official Material Icons page. Other icon libraries can be used by providing the class for the respective pack in the icon-pack property. ex. FA4 uses fa or fas, FA5 uses fas, far, or fal.
Icons
You can add to the alert a descriptive icon with the property icon
and as a value the icon name of the icon in the currently selected icon pack. (The default is Material Icons)
TIP
Vuesax uses the Google Material Icons font library by default. For a list of all available icons, visit the official Material Icons page. Other icon libraries can be used by providing the class for the respective pack in the icon-pack property. ex. FA4 uses fa or fas, FA5 uses fas, far, or fal.
Example of use
An example would be to have an input and when a condition is met show the vs-alert.