pub fn Alert(props: AlertProps) -> ElementExpand description
An alert component for displaying messages
This component displays important information with different styles for success, warning, info, and error states.
§Example
ⓘ
use dioxus_element_plug::components::alert::{Alert, AlertType};
rsx! {
Alert {
title: "Success!".to_string(),
description: Some("Operation completed successfully".to_string()),
alert_type: AlertType::Success,
closable: true,
on_close: move |_| println!("Alert closed"),
}
}