Glass Slider
rust
pub fn glass_slider(
args: impl Into<GlassSliderArgs>,
state: GlassSliderState,
)The glass_slider component displays an interactive slider that allows selecting a value within a range. It is the glass variant of the slider component. The component supports configuring background color, border, refraction, dispersion, and more, and provides drag interaction.
Arguments
args: impl Into<GlassSliderArgs>This argument configures the style of the glass_slider component, including size, color, border, etc. Use
GlassSliderArgsBuilderto construct it.state: GlassSliderStateThis argument manages the state of the glass_slider component, including the current value.
GlassSliderStateis a clonable struct that encapsulates a shared reference to the state internally.
Preview
