pub const color: (&'static str, Option<&'static str>, bool);Expand description
The color attribute lets you specify the color of the text.
You can learn about the syntax of this attribute in Color Syntax.
ยงExample
fn app() -> Element {
rsx!(
label {
color: "green",
"Hello, World!"
}
)
}Another example showing inheritance:
fn app() -> Element {
rsx!(
rect {
color: "blue",
label {
"Hello, World!"
}
}
)
}