euv-ui 0.28.2

Reusable UI component library for the euv framework, providing buttons, cards, modals, inputs, and more.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::*;

/// Props for the `euv_rating` component.
///
/// Defines the strongly-typed interface for the star rating. The value and
/// scale live in caller-owned signals so a parent can drive the rating and
/// receive updates when `readonly` is false.
#[derive(Clone, CustomDebug, Default)]
pub struct EuvRatingProps {
    /// The current rating value, which may be fractional for half stars.
    pub value: Signal<f64>,
    /// The maximum rating value, the number of stars rendered.
    pub max: Signal<f64>,
    /// Whether the rating is display-only, suppressing the fill overlay.
    pub readonly: Signal<bool>,
    /// The star glyph size.
    pub size: EuvRatingSize,
}