Expand description
paragraph element let’s you build texts with different styles.
This used used with the text element.
fn app() -> Element {
rsx!(
paragraph {
text {
font_size: "15",
"Hello, "
}
text {
font_size: "30",
"World!"
}
}
)
}Constants§
- a11y_
access_ key - a11y_
author_ id - a11y_
auto_ complete - a11y_
auto_ focus - a11y_
busy - a11y_
color_ value - a11y_
column_ count - a11y_
column_ index - a11y_
column_ index_ text - a11y_
column_ span - a11y_
current - a11y_
default_ action_ verb - a11y_
description - a11y_
disabled - a11y_
expanded - a11y_
focusable - a11y_
has_ popup - a11y_
hidden - a11y_
hovered - a11y_id
- a11y_
invalid - a11y_
is_ grammar_ error - a11y_
is_ search_ match - a11y_
is_ spelling_ error - a11y_
is_ suggestion - a11y_
keyboard_ shortcut - a11y_
language - a11y_
level - a11y_
linked - a11y_
list_ style - a11y_
live - a11y_
live_ atomic - a11y_
max_ numeric_ value - a11y_
min_ numeric_ value - a11y_
modal - a11y_
multiselectable - a11y_
name - a11y_
numeric_ value - a11y_
numeric_ value_ jump - a11y_
numeric_ value_ step - a11y_
orientation - a11y_
placeholder - a11y_
position_ in_ set - a11y_
read_ only - a11y_
required - a11y_
role - a11y_
role_ description - a11y_
row_ count - a11y_
row_ index - a11y_
row_ index_ text - a11y_
row_ span - a11y_
scroll_ x - a11y_
scroll_ x_ max - a11y_
scroll_ x_ min - a11y_
scroll_ y - a11y_
scroll_ y_ max - a11y_
scroll_ y_ min - a11y_
selected - a11y_
size_ of_ set - a11y_
sort_ direction - a11y_
state_ description - a11y_
toggled - a11y_
tooltip - a11y_
touch_ transparent - a11y_
url - a11y_
value - a11y_
vertical_ offset - a11y_
visited - color
- The
colorattribute lets you specify the color of the text. - cursor_
color - cursor_
id - cursor_
index - cursor_
mode - cursor_
reference - decoration
- Specify the decoration in a text.
- decoration_
color - Specify the decoration’s color in a text.
- decoration_
style - Specify the decoration’s style in a text.
- font_
family - With the
font_familyyou can specify what font you want to use for the inner text. - font_
size - You can specify the size of the text using
font_size. - font_
style - You can choose a style for a text using the
font_styleattribute. - font_
weight - You can choose a weight for text using the
font_weightattribute. - font_
width - You can choose a width for a text using the
font_widthattribute. - height
- Specify the width for the given element.
- highlight_
color - highlight_
mode - highlights
- layer
- letter_
spacing - Specify the spacing between characters of the text.
- line_
height - line_height
- main_
align - main_align
- margin
- Specify the margin of an element. You can do so by four different ways, just like in CSS.
- max_
height - Specify a maximum height for the given element.
- max_
lines - Determines the amount of lines that the text can have. It has unlimited lines by default.
- max_
width - Specify a maximum width for the given element.
- min_
height - This can be useful if you use it alongside a percentage for the target size.
- min_
width - Specify a minimum height for the given element. This can be useful if you use it alongside a percentage for the target size.
- opacity
- Specify the opacity for this element.
- position
- Specify how you want the element to be positioned inside it’s parent area.
- position_
bottom - position_
left - position_
right - position_
top - rotate
- Specify the rotation for this element.
- text_
align - You can change the alignment of the text using the
text_alignattribute. - text_
height - Specify the text height behavior.
- text_
overflow - Determines how text is treated when it exceeds its
max_linescount. By default uses theclipmode, which will cut off any overflowing text, withellipsismode it will show...at the end. - text_
shadow - Specify the shadow of a text.
- width
- Specify the height for the given element.
- word_
spacing - Specify the spacing between words of the text.