1
0

html_documentation.py 356 B

123456789101112131415161718
  1. from nicegui import ui
  2. from . import doc
  3. @doc.demo(ui.html)
  4. def main_demo() -> None:
  5. ui.html('This is <strong>HTML</strong>.')
  6. @doc.demo('Producing in-line elements', '''
  7. Use the `tag` parameter to produce something other than a div.
  8. ''')
  9. def demo_inline() -> None:
  10. ui.html('This is <u>emphasized</u>.', tag='em')
  11. doc.reference(ui.html)