Skip to main content

euv_ui/component/space/view/
enum.rs

1use super::*;
2
3/// The spacing step of the `euv_space` component.
4///
5/// Each step maps to a design token rather than a hardcoded pixel value, so
6/// the gap follows the theme's spacing scale.
7#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
8pub enum EuvSpaceSize {
9    /// The tightest step, for separating an icon from its label.
10    Xs,
11    /// A small step, for list items and inline groups.
12    Sm,
13    /// The default step, for sibling blocks inside a section.
14    #[default]
15    Md,
16    /// A large step, for separating section groups.
17    Lg,
18    /// The largest step, for separating top-level page regions.
19    Xl,
20}