euv_ui/component/rating/view/struct.rs
1use super::*;
2
3/// Props for the `euv_rating` component.
4///
5/// Defines the strongly-typed interface for the star rating. The value and
6/// scale live in caller-owned signals so a parent can drive the rating and
7/// receive updates when `readonly` is false.
8#[derive(Clone, CustomDebug, Default)]
9pub struct EuvRatingProps {
10 /// The current rating value, which may be fractional for half stars.
11 pub value: Signal<f64>,
12 /// The maximum rating value, the number of stars rendered.
13 pub max: Signal<f64>,
14 /// Whether the rating is display-only, suppressing the fill overlay.
15 pub readonly: Signal<bool>,
16 /// The star glyph size.
17 pub size: EuvRatingSize,
18}