Skip to main content

card

Function card 

Source
pub fn card(variant: CardVariant) -> CardSurface
Expand description

Compatibility appearance helper: full width and 16dp example padding. Returns CardSurface instead of the earlier Div; Styled and ParentElement chains remain supported. Use CardSurface::new for the reference’s unpadded surface, then supply caller-owned content spacing.