Skip to main content

material

Function material 

Source
pub fn material(
    corner_radius: f32,
    blur_radius: f32,
    child: impl IntoElement,
) -> Material
Expand description

Frost a card whose rounding the caller states — the shape the popover layers need, where the card arrives already erased to an AnyElement and its radius belongs to the surface kind. Backdrop-blurred on glass, pass-through on opaque platforms.