pub struct alert;Expand description
A notice displayed within the page.
Use variant to choose its style. Pass an optional icon, an alert_title, and an
alert_description as children. attrs are forwarded to the <div>, with extra
classes added to its classes.
ⓘ
view! {
alert(
variant: AlertVariant::Destructive,
icon(data: iconify_icon!("lucide:triangle-alert"))
alert_title("Build failed")
alert_description("The last deploy did not finish.")
)
}Trait Implementations§
Source§impl Component for alert
impl Component for alert
Source§type Props<'__props> = AlertProps<'__props>
type Props<'__props> = AlertProps<'__props>
The component’s properties. The lifetime covers data borrowed from
the caller.
Source§fn render<'__a, '__props>(
self,
cx: &'__a Cx,
props: Self::Props<'__props>,
) -> impl Future<Output = Result<impl View>> + Send + '__awhere
Self: '__a,
Self::Props<'__props>: '__a,
'__props: '__a,
fn render<'__a, '__props>(
self,
cx: &'__a Cx,
props: Self::Props<'__props>,
) -> impl Future<Output = Result<impl View>> + Send + '__awhere
Self: '__a,
Self::Props<'__props>: '__a,
'__props: '__a,
fn props_builder<'a>() -> <Self::Props<'a> as Props>::Builder
Auto Trait Implementations§
impl Freeze for alert
impl RefUnwindSafe for alert
impl Send for alert
impl Sync for alert
impl Unpin for alert
impl UnsafeUnpin for alert
impl UnwindSafe for alert
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more