Skip to main content

euv_ui/component/panel/view/
struct.rs

1use super::*;
2
3/// Props for the `euv_panel` component.
4///
5/// Defines the strongly-typed interface for the bordered section container.
6/// A panel is a superset of [`EuvCardProps`]: it adds a subtitle and a border
7/// variant. Children are the panel body, so a footer is passed as trailing
8/// children rather than as a prop.
9#[derive(Clone, CustomDebug, Default)]
10pub struct EuvPanelProps {
11    /// The panel title rendered in the header.
12    pub title: &'static str,
13    /// The optional subtitle rendered under the title. Skipped when empty.
14    pub subtitle: &'static str,
15    /// The border treatment of the panel.
16    pub variant: EuvPanelVariant,
17}