euv_ui/component/input_group/view/enum.rs
1use super::*;
2
3/// Where an input-group addon sits relative to the control.
4///
5/// The reference publishes four: the two inline positions beside the
6/// field and the two block positions above and below it.
7#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)]
8pub enum EuvInputGroupAlign {
9 /// Before the control, on the same line.
10 #[default]
11 InlineStart,
12 /// After the control, on the same line.
13 InlineEnd,
14 /// Above the control, on its own line.
15 BlockStart,
16 /// Below the control, on its own line.
17 BlockEnd,
18}
19
20/// The size of a button that sits inside an input group.
21///
22/// The reference publishes four: two text buttons and two square icon
23/// buttons.
24#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)]
25pub enum EuvInputGroupButtonSize {
26 /// The extra-small text button.
27 #[default]
28 Xs,
29 /// The small text button.
30 Sm,
31 /// The extra-small square icon button.
32 IconXs,
33 /// The small square icon button.
34 IconSm,
35}