euv_ui/component/rating/view/enum.rs
1use super::*;
2
3/// The star glyph size of the `euv_rating` component.
4///
5/// The steps follow the shared monochrome type scale, one step below the
6/// `euv_icon` `Xl` glyph so a five-star row stays compact.
7#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
8pub enum EuvRatingSize {
9 /// A 14px star for dense table cells.
10 Sm,
11 /// An 18px star, the default size for list rows.
12 #[default]
13 Md,
14 /// A 24px star for standalone ratings.
15 Lg,
16}