Skip to main content

euv_ui/component/divider/view/
struct.rs

1use super::*;
2
3/// Props for the [`euv_divider`] component.
4///
5/// A non-empty `label` switches the plain rule to the labelled form: the
6/// text sits between two rule segments.
7#[derive(Clone, CustomDebug, Default)]
8pub struct EuvDividerProps {
9    /// The direction the rule runs in.
10    pub orientation: EuvDividerOrientation,
11    /// The optional label centred between two rule segments (skipped when
12    /// empty).
13    pub label: &'static str,
14}