pub struct ToasterProps<'__a> {
pub label: String,
pub attrs: Attributes,
pub child: Child<'__a>,
}Expand description
Renders the toast stack.
toaster(label: "Notifications",
toast(attrs: attributes! { data-type="success" },
toast_icon(icon(data: icons::CIRCLE_CHECK))
toast_content(
toast_title("Created")
toast_description("The record is live.")
)
toast_close(label: "Close")
)
)Fields§
§label: StringThe region’s accessible name, such as "Notifications".
attrs: Attributes§child: Child<'__a>Implementations§
Source§impl<'__a> ToasterProps<'__a>
impl<'__a> ToasterProps<'__a>
Sourcepub fn builder() -> ToasterPropsBuilder<'__a, label>
pub fn builder() -> ToasterPropsBuilder<'__a, label>
Returns a ToasterPropsBuilder with no properties set.
Trait Implementations§
Auto Trait Implementations§
impl<'__a> !RefUnwindSafe for ToasterProps<'__a>
impl<'__a> !Sync for ToasterProps<'__a>
impl<'__a> !UnwindSafe for ToasterProps<'__a>
impl<'__a> Freeze for ToasterProps<'__a>
impl<'__a> Send for ToasterProps<'__a>
impl<'__a> Unpin for ToasterProps<'__a>
impl<'__a> UnsafeUnpin for ToasterProps<'__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