Constant freya_elements::attributes::shadow::shadow
source · pub const shadow: (&'static str, Option<&'static str>, bool);
Expand description
Draw a shadow of the element.
The shadow
attribute follows this syntax:
shadow: <x> <y> <intensity> <size> <color>
x
andy
: Define the offset position of the shadowintensity
: Controls the shadow’s blur amountsize
: Specifies the shadow’s size/spreadcolor
: Any valid color value for the shadow
§Example
fn app() -> Element {
rsx!(
rect {
shadow: "0 0 25 2 rgb(0, 0, 0, 120)"
}
)
}