✨ Announcing our seed funding led by Lux Capital! Read more about it on our blog
DocsBlogChangelog

Search documentation...

/

Star

12k+

[ Learn ]

[ Concepts ]

[ Reference ]

Html


The HTML component can be used to render raw HTML code. It takes in a string of HTML code and renders it.
Before you reach for this component, consider using Reflex's raw HTML element support instead.

Hello World

Hello World

Hello World

Hello World

Hello World
Hello World
rx.vstack(
    rx.html("<h1>Hello World</h1>"),
    rx.html("<h2>Hello World</h2>"),
    rx.html("<h3>Hello World</h3>"),
    rx.html("<h4>Hello World</h4>"),
    rx.html("<h5>Hello World</h5>"),
    rx.html("<h6>Hello World</h6>"),
)
Here is another example of the HTML component. In this example, we render an image.
rx.vstack(
    rx.html(
        "<img src='https://reflex.dev/reflex_banner.png' />"
    ),
)

Html


Render the html.

Returns:
    The code to render the  html component.

  • Base Event Triggers

← TooltipScript →

Copyright © 2023 Pynecone, Inc.