Alert
Display important messages to the user, such as warnings, errors, success messages, or informational notices.
Examples
Types
With Button
Dismissible
🗑️ Destroy component after dismiss!
Even though the component destroys its DOMs, its internal states still persist in VDOM. Therefore, you should manually unmount the component on @dismiss event.
Why? This is because a component cannot control its life-cycle, otherwise race conditions and memory leaks could happen!
Dimiss after a duration
🗑️ Destroy component after dismiss!
Even though the component destroys its DOMs, its internal states still persist in VDOM. Therefore, you should manually unmount the component on @dismiss event.
Why? This is because a component cannot control its life-cycle, otherwise race conditions and memory leaks could happen!
API
Pass-through: <div>
What does this mean?
All props, events, and attrs that are not specified in the tables below will be passed to the element/component described above.