pub fn fluid_glass(
args: FluidGlassArgs,
ripple_state: Option<RippleState>,
child: impl FnOnce(),
)Expand description
§fluid_glass
Renders a highly customizable surface with blur, tint, and other glass-like effects.
§Usage
Use to create a dynamic, layered background for other components.
§Parameters
args— configures the glass effect’s appearance; seeFluidGlassArgs.ripple_state— an optionalRippleStateto manage a ripple animation on interaction.child— a closure that renders content on top of the glass surface.
§Examples
use tessera_ui_basic_components::{
fluid_glass::{fluid_glass, FluidGlassArgs},
text::{text, TextArgsBuilder},
};
fluid_glass(FluidGlassArgs::default(), None, || {
text(TextArgsBuilder::default().text("Content on glass".to_string()).build().expect("builder construction failed"));
});