functora-egui 0.4.2

shadcn/ui-inspired widget library for egui - buttons, inputs, selects, dialogs, and 70+ more components with light/dark theming
Documentation
#[must_use]
pub struct Navbar<'a> {
    pub(crate) brand: &'a str,
    pub(crate) brand_icon: Option<crate::icons::lucide_icon::LucideIcon>,
    pub(crate) version: Option<&'a str>,
    pub(crate) search_label: Option<&'a str>,
    pub(crate) search_shortcut: Option<&'a str>,
}

impl<'a> Navbar<'a> {
    pub fn new(brand: &'a str) -> Self {
        Self {
            brand,
            brand_icon: None,
            version: None,
            search_label: None,
            search_shortcut: None,
        }
    }

    pub fn brand_icon(mut self, icon: Option<crate::icons::lucide_icon::LucideIcon>) -> Self {
        self.brand_icon = icon;
        self
    }

    pub fn version(mut self, version: &'a str) -> Self {
        self.version = Some(version);
        self
    }

    pub fn search(mut self, label: &'a str, shortcut: Option<&'a str>) -> Self {
        self.search_label = Some(label);
        self.search_shortcut = shortcut;
        self
    }
}