pub struct NavbarProps {Show 20 fields
pub menus: Vec<Menu>,
pub button_href: &'static str,
pub button_text: &'static str,
pub navbar_class: &'static str,
pub logo_class: &'static str,
pub menu_toggle_class: &'static str,
pub line_class: &'static str,
pub flex_container_class: &'static str,
pub hidden_md_class: &'static str,
pub nav_class: &'static str,
pub menu_item_class: &'static str,
pub button_class: &'static str,
pub button_link_class: &'static str,
pub dropdown_item_class: &'static str,
pub dropdown_class: &'static str,
pub search_input_class: &'static str,
pub logo_src: &'static str,
pub logo_alt: &'static str,
pub logo_img_class: &'static str,
pub logo_link: &'static str,
}
Expand description
Properties for the Navbar component
Fieldsยง
Vector of menu items to be displayed in the navbar.
Href attribute for the optional button in the navbar.
Text content for the optional button in the navbar.
CSS class for styling the main navbar container.
logo_class: &'static str
CSS class for styling the logo container.
CSS class for styling the menu toggle button.
line_class: &'static str
CSS class for styling the lines of the menu toggle button.
flex_container_class: &'static str
CSS class for styling the flex container of the navbar.
CSS class for hiding elements on medium-sized screens.
CSS class for styling the navigation menu.
CSS class for styling individual menu items.
CSS class for styling the optional button in the navbar.
CSS class for styling the optional button as a link.
dropdown_item_class: &'static str
CSS class for styling items in the dropdown menu.
dropdown_class: &'static str
CSS class for styling the dropdown menu container.
search_input_class: &'static str
CSS class for styling the search input.
logo_src: &'static str
Source URL for the logo image.
logo_alt: &'static str
Alt text for the logo image.
logo_img_class: &'static str
CSS class for styling the logo image.
logo_link: &'static str
Href attribute for the logo link.
Trait Implementationsยง
Sourceยงfn clone(&self) -> NavbarProps
fn clone(&self) -> NavbarProps
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSourceยงfn default() -> NavbarProps
fn default() -> NavbarProps
Sourceยงfn builder() -> <NavbarProps as Properties>::Builder
fn builder() -> <NavbarProps as Properties>::Builder
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
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<T> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Sourceยงimpl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Sourceยงfn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
self
to a value of a Properties
struct.Sourceยงimpl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Sourceยงfn into_prop_value(self) -> T
fn into_prop_value(self) -> T
self
to a value of a Properties
struct.