zino_dioxus/form/
progress.rsuse crate::class::Class;
use dioxus::prelude::*;
use zino_core::SharedString;
pub fn Progress(props: ProgressProps) -> Element {
rsx! {
progress {
class: "{props.class}",
class: if !props.color.is_empty() { "is-{props.color}" },
class: if !props.size.is_empty() { "is-{props.size}" },
..props.attributes,
{ props.children }
}
}
}
#[derive(Clone, PartialEq, Props)]
pub struct ProgressProps {
#[props(into, default = "progress")]
pub class: Class,
#[props(into, default)]
pub color: SharedString,
#[props(into, default)]
pub size: SharedString,
#[props(extends = input)]
attributes: Vec<Attribute>,
children: Element,
}