pub struct AlertProps<'__a> {
pub variant: AlertVariant,
pub attrs: Attributes,
pub child: Child<'__a>,
}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.")
)
}Fields§
§variant: AlertVariantThe visual style of the notice.
attrs: AttributesExtra attributes for the <div> element.
child: Child<'__a>The alert’s icon, title, and description.
Implementations§
Source§impl<'__a> AlertProps<'__a>
impl<'__a> AlertProps<'__a>
Sourcepub fn builder() -> AlertPropsBuilder<'__a>
pub fn builder() -> AlertPropsBuilder<'__a>
Returns a AlertPropsBuilder with no properties set.
Trait Implementations§
Auto Trait Implementations§
impl<'__a> !RefUnwindSafe for AlertProps<'__a>
impl<'__a> !Sync for AlertProps<'__a>
impl<'__a> !UnwindSafe for AlertProps<'__a>
impl<'__a> Freeze for AlertProps<'__a>
impl<'__a> Send for AlertProps<'__a>
impl<'__a> Unpin for AlertProps<'__a>
impl<'__a> UnsafeUnpin for AlertProps<'__a>
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