Constant freya::elements::paragraph::text_align

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

You can change the alignment of the text using the text_align attribute.

Accepted values:

  • center
  • end
  • justify
  • left (default)
  • right
  • start

ยงExample

fn app() -> Element {
    rsx!(
        label {
            text_align: "right",
            "Hello, World!"
        }
    )
}