euv_ui/component/button/enum.rs
1/// Visual emphasis variant for `EuvButton`.
2#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
3pub enum EuvButtonVariant {
4 /// Filled brand primary button (default).
5 #[default]
6 Primary,
7 /// Subtle secondary surface button.
8 Secondary,
9 /// High-contrast destructive action button.
10 Destructive,
11 /// Hairline-bordered outline button.
12 Outline,
13 /// Borderless transparent ghost button.
14 Ghost,
15 /// Text link button.
16 Link,
17}
18
19/// Control height and padding preset for `EuvButton`.
20#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
21pub enum EuvButtonSize {
22 /// Compact control height.
23 Small,
24 /// Standard control height.
25 #[default]
26 Default,
27 /// Prominent large control height.
28 Large,
29 /// Square icon button.
30 Icon,
31}