The text component displays a paragraph of text.

Hello World!

rc.text("Hello World!", font_size="2em")

The text element can be visually modified using the as_ prop.

Hello World!Hello World!Hello World!Hello World!
rc.vstack(
    rc.text("Hello World!", as_="i"),
    rc.text("Hello World!", as_="s"),
    rc.text("Hello World!", as_="mark"),
    rc.text("Hello World!", as_="sub"),
)

rc.Text

Render a paragraph of text.

PropType | ValuesDefault
as_
str
no_of_lines
int

Event Triggers

See the full list of default event triggers