pub struct EuvRatingProps {
pub value: Signal<f64>,
pub max: Signal<f64>,
pub readonly: Signal<bool>,
pub size: EuvRatingSize,
}Expand description
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.
Fields§
§value: Signal<f64>The current rating value, which may be fractional for half stars.
max: Signal<f64>The maximum rating value, the number of stars rendered.
readonly: Signal<bool>Whether the rating is display-only, suppressing the fill overlay.
size: EuvRatingSizeThe star glyph size.
Trait Implementations§
Source§impl Clone for EuvRatingProps
impl Clone for EuvRatingProps
Source§impl Debug for EuvRatingProps
impl Debug for EuvRatingProps
Auto Trait Implementations§
impl Freeze for EuvRatingProps
impl RefUnwindSafe for EuvRatingProps
impl Send for EuvRatingProps
impl Sync for EuvRatingProps
impl Unpin for EuvRatingProps
impl UnsafeUnpin for EuvRatingProps
impl UnwindSafe for EuvRatingProps
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more