pub struct ProgressBarProps {
pub value: u8,
pub min: u8,
pub max: u8,
pub variant: Option<Variant>,
pub animation: Option<ProgressAnimation>,
pub striped: bool,
pub animated: bool,
pub label: Option<AttrValue>,
pub show_label: bool,
pub width: Option<AttrValue>,
pub class: Option<AttrValue>,
pub aria_label: Option<AttrValue>,
}Expand description
Props for the ProgressBar component
Fields§
§value: u8Progress value (0-100)
min: u8Minimum value
max: u8Maximum value
variant: Option<Variant>Progress bar variant
animation: Option<ProgressAnimation>Animation type
striped: boolWhether the progress bar is striped
animated: boolWhether the progress bar is animated
label: Option<AttrValue>Custom label text (overrides percentage)
show_label: boolWhether to show percentage label
width: Option<AttrValue>Custom width (for multiple bars)
class: Option<AttrValue>Additional CSS classes
aria_label: Option<AttrValue>ARIA label for accessibility
Trait Implementations§
Source§impl PartialEq for ProgressBarProps
impl PartialEq for ProgressBarProps
Source§impl Properties for ProgressBarProps
impl Properties for ProgressBarProps
impl StructuralPartialEq for ProgressBarProps
Auto Trait Implementations§
impl Freeze for ProgressBarProps
impl RefUnwindSafe for ProgressBarProps
impl !Send for ProgressBarProps
impl !Sync for ProgressBarProps
impl Unpin for ProgressBarProps
impl UnwindSafe for ProgressBarProps
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.