You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
543 B
16 lines
543 B
from .mixins.content_element import ContentElement |
|
|
|
|
|
class Html(ContentElement): |
|
|
|
def __init__(self, content: str = '') -> None: |
|
"""HTML Element |
|
|
|
Renders arbitrary HTML onto the page. |
|
`Tailwind <https://tailwindcss.com/>`_ can be used for styling. |
|
You can also use `ui.add_head_html` to add html code into the head of the document and `ui.add_body_html` |
|
to add it into the body. |
|
|
|
:param content: the HTML code to be displayed |
|
""" |
|
super().__init__(tag='div', content=content)
|
|
|