pub struct EuvSidebarMenuButtonProps {
pub is_active: bool,
pub href: &'static str,
}Expand description
Props of the euv_sidebar_menu_button component.
The row of a menu item is the clickable part of it. The reference renders a link when the row leads somewhere and a button when it only acts, so the target route decides which of the two it is.
Fields§
§is_active: boolWhether the row is the one the reader is on.
The state travels in the data-active attribute, so the styling of
the row can be driven from the markup alone.
href: &'static strThe route the row leads to.
An empty route renders a button instead of a link.
Trait Implementations§
Source§impl Clone for EuvSidebarMenuButtonProps
impl Clone for EuvSidebarMenuButtonProps
Source§impl Debug for EuvSidebarMenuButtonProps
impl Debug for EuvSidebarMenuButtonProps
Auto Trait Implementations§
impl Forget for EuvSidebarMenuButtonProps
impl Freeze for EuvSidebarMenuButtonProps
impl Move for EuvSidebarMenuButtonProps
impl RefUnwindSafe for EuvSidebarMenuButtonProps
impl Send for EuvSidebarMenuButtonProps
impl Sync for EuvSidebarMenuButtonProps
impl Unpin for EuvSidebarMenuButtonProps
impl UnsafeUnpin for EuvSidebarMenuButtonProps
impl UnwindSafe for EuvSidebarMenuButtonProps
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