dashboard.py 496 B

123456789101112131415161718192021
  1. """The dashboard page."""
  2. from code.templates import template
  3. import reflex as rx
  4. @template(route="/dashboard", title="Dashboard")
  5. def dashboard() -> rx.Component:
  6. """The dashboard page.
  7. Returns:
  8. The UI for the dashboard page.
  9. """
  10. return rx.vstack(
  11. rx.heading("Dashboard", font_size="3em"),
  12. rx.text("Welcome to Reflex!"),
  13. rx.text(
  14. "You can edit this page in ",
  15. rx.code("{your_app}/pages/dashboard.py"),
  16. ),
  17. )