pub fn Card(_: CardProps) -> ElementExpand description
A grouped container. What a card looks like, its background, corner and resting
elevation, is the design system’s decision, so the widget carries no appearance of its
own. Modifier::Elevation overrides the resting height when the Host has a reason to.
§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