euv-ui 0.28.2

Reusable UI component library for the euv framework, providing buttons, cards, modals, inputs, and more.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::*;

/// Props for the `euv_panel` component.
///
/// Defines the strongly-typed interface for the bordered section container.
/// A panel is a superset of [`EuvCardProps`]: it adds a subtitle and a border
/// variant. Children are the panel body, so a footer is passed as trailing
/// children rather than as a prop.
#[derive(Clone, CustomDebug, Default)]
pub struct EuvPanelProps {
    /// The panel title rendered in the header.
    pub title: &'static str,
    /// The optional subtitle rendered under the title. Skipped when empty.
    pub subtitle: &'static str,
    /// The border treatment of the panel.
    pub variant: EuvPanelVariant,
}