pub fn glass_progress(args: impl Into<GlassProgressArgs>)
Expand description
Creates a progress bar component with a frosted glass effect.
The glass_progress
displays a value from a continuous range (0.0 to 1.0)
with a modern, semi-transparent “glassmorphism” aesthetic, including a
blurred background and subtle highlights.
§Arguments
args
- An instance ofGlassProgressArgs
orGlassProgressArgsBuilder
to configure the progress bar’s appearance.value
: The current progress value, must be between 0.0 and 1.0.
§Example
use tessera_ui_basic_components::glass_progress::{glass_progress, GlassProgressArgsBuilder};
// In your component function
glass_progress(
GlassProgressArgsBuilder::default()
.value(0.75)
.build()
.unwrap(),
);