Constant freya_elements::elements::paragraph::opacity

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

Specify the opacity for this element.

Accepted values is from 0 to 1.

§Example

fn app() -> Element {
    rsx!(
        rect {
            opacity: "0.5",
            label {
                "Freya!"
            }
        }
    )
}