functora-egui 0.2.0

shadcn/ui-inspired widget library for egui - buttons, inputs, selects, dialogs, and 70+ more components with light/dark theming
Documentation
//! Card builder struct — a bordered container styled after shadcn/ui Card.

/// A card container: `border bg-card rounded-xl py-4`.
///
/// Not a `Widget` — uses `show(ui, closure)` pattern like `egui::Frame`.
#[must_use]
pub struct Card {
    pub(crate) heading: Option<String>,
}

impl Default for Card {
    fn default() -> Self {
        Self::new()
    }
}

impl Card {
    pub fn new() -> Self {
        Self { heading: None }
    }

    /// Adds a strong heading rendered above the card content.
    pub fn heading(mut self, heading: impl Into<String>) -> Self {
        self.heading = Some(heading.into());
        self
    }
}