pub fn Surface(_: SurfaceProps) -> ElementExpand description
A plain background-and-elevation container. Use it where a Card’s grouping meaning
would be wrong and only the surface is wanted.
§Props
For details, see the props struct definition.
observe_size:Option<i64>Asks the Renderer to report this node’s measured size, under the name a screen gave it with
use_node_size. Nothing is measured without it.motion:Option<MotionRole>How important this node’s changes are. The curve and the length are the design system’s answer to that, and are never sent from here.
material:Option<MaterialRole>What this node’s surface is made of. Blur on the systems that blur, a lifted tone on the ones that lift, a flat fill on the rest.
weight:Option<f32>width:Option<f32>height:Option<f32>padding:Option<f32>padding_role:Option<SpaceRole>background:Option<Paint>shape_role:Option<ShapeRole>corner_radius:Option<f32>border_width:Option<f32>border_color:Option<Paint>elevation:Option<f32>fill_max_width:boolfill_max_height:boolchildren:Element