Skip to main content

BoxProps

Type Alias BoxProps 

Source
pub type BoxProps = ResolvedBoxProps;
Expand description

Type alias for backwards compatibility. TODO: Remove this once all code uses ResolvedBoxProps directly.

Aliased Type§

pub struct BoxProps {
    pub margin: EdgeSizes,
    pub padding: EdgeSizes,
    pub border: EdgeSizes,
    pub margin_auto: MarginAuto,
}

Fields§

§margin: EdgeSizes§padding: EdgeSizes§border: EdgeSizes§margin_auto: MarginAuto

Tracks which margins are set to auto. CSS 2.2 § 10.3.3: If both margin-left and margin-right are auto, their used values are equal, centering the element within its container.