pub struct AlertProps<'__a> {
pub variant: AlertVariant,
pub attrs: Attributes,
pub child: Child<'__a>,
}Expand description
The alert. It carries no role="alert", which interrupts a screen reader the moment the
element appears: right for a message arriving during the visit, not for one rendered with the
page. Pass it among the attrs where that is what you want.
Fields§
§variant: AlertVariant§attrs: Attributes§child: Child<'__a>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§
Source§impl<'__a> Props for AlertProps<'__a>
impl<'__a> Props for AlertProps<'__a>
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