Constant freya::elements::label::rotate

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

Specify the rotation for this element.

Syntax is <0-360>deg.

Note: Rotations don’t affect neither layout or mouse events, they are merely a rendering effect.

§Example

fn app() -> Element {
    rsx!(
        rect {
            background: "red",
            rotate: "180deg",
            label {
                "Freya!"
            }
        }
    )
}