pub struct EuvNavbarProps {
pub route_signal: Signal<String>,
pub brand_logo: &'static str,
pub brand_title: &'static str,
pub brand_href: &'static str,
pub items: &'static [EuvNavbarItem],
pub drawer_open: Option<Signal<bool>>,
}Expand description
Props for the euv_navbar component.
The trailing actions area (theme toggle, language menu, …) is supplied as children so callers compose arbitrary controls.
Fields§
§route_signal: Signal<String>The current route signal (drives the active link highlight).
brand_logo: &'static strThe brand logo text rendered inside the accent square.
brand_title: &'static strThe brand title rendered next to the logo.
brand_href: &'static strThe brand home route.
items: &'static [EuvNavbarItem]The navigation links.
drawer_open: Option<Signal<bool>>The mobile drawer signal; when Some a hamburger button is rendered
on small viewports and toggles it.
Trait Implementations§
Source§fn clone(&self) -> EuvNavbarProps
fn clone(&self) -> EuvNavbarProps
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§fn default() -> EuvNavbarProps
fn default() -> EuvNavbarProps
Returns the “default value” for a type. Read more
Auto Trait Implementations§
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