text_elements.py 434 B

12345678910111213141516171819
  1. from nicegui import ui
  2. from ..tools import load_demo
  3. name = 'text_elements'
  4. title = 'Text Elements'
  5. description = '''
  6. Elements like `ui.label`, `ui.markdown` and `ui.html` can be used to display text and other content.
  7. '''
  8. def content() -> None:
  9. load_demo(ui.label)
  10. load_demo(ui.link)
  11. load_demo(ui.chat_message)
  12. load_demo(ui.element)
  13. load_demo(ui.markdown)
  14. load_demo(ui.mermaid)
  15. load_demo(ui.html)