Constant freya::elements::label::max_width

source ·
pub const max_width: (&'static str, Option<&'static str>, bool);
Expand description

Specify a maximum width for the given element.

See syntax for Size Units.

§Usage
fn app() -> Element {
    rsx!(
        rect {
            background: "red",
            max_width: "50%",
            width: "500",
            height: "500",
        }
    )
}