Constant freya_elements::elements::label::text_align
source · pub const text_align: AttributeDescription;Expand description
You can change the alignment of the text using the text_align attribute.
Accepted values:
centerendjustifyleft(default)rightstart
§Example
fn app() -> Element {
rsx!(
label {
text_align: "right",
"Hello, World!"
}
)
}