pub struct SidebarMenuButtonProps<'__a> {
pub variant: SidebarMenuButtonVariant,
pub size: SidebarMenuButtonSize,
pub active: Expr<bool>,
pub href: Option<&'__a str>,
pub tooltip: Option<&'__a str>,
pub attrs: Attributes,
pub child: Child<'__a>,
}Expand description
A menu action, or a navigation link when href is supplied.
Put an icon before a <span> containing the label. tooltip supplies a
native title hint for the icon-only state. active accepts a boolean or
runtime expression. Event handlers and other attributes are forwarded.
Fields§
§variant: SidebarMenuButtonVariant§size: SidebarMenuButtonSize§active: Expr<bool>§href: Option<&'__a str>§tooltip: Option<&'__a str>§attrs: Attributes§child: Child<'__a>Implementations§
Source§impl<'__a> SidebarMenuButtonProps<'__a>
impl<'__a> SidebarMenuButtonProps<'__a>
Sourcepub fn builder() -> SidebarMenuButtonPropsBuilder<'__a>
pub fn builder() -> SidebarMenuButtonPropsBuilder<'__a>
Returns a SidebarMenuButtonPropsBuilder with no properties set.
Trait Implementations§
Auto Trait Implementations§
impl<'__a> !RefUnwindSafe for SidebarMenuButtonProps<'__a>
impl<'__a> !Sync for SidebarMenuButtonProps<'__a>
impl<'__a> !UnwindSafe for SidebarMenuButtonProps<'__a>
impl<'__a> Freeze for SidebarMenuButtonProps<'__a>
impl<'__a> Send for SidebarMenuButtonProps<'__a>
impl<'__a> Unpin for SidebarMenuButtonProps<'__a>
impl<'__a> UnsafeUnpin for SidebarMenuButtonProps<'__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