__init__.py 730 B

123456789101112131415161718192021222324252627282930313233
  1. """Base components."""
  2. from __future__ import annotations
  3. from reflex.utils import lazy_loader
  4. _SUBMODULES: set[str] = {"app_wrap", "bare"}
  5. _SUBMOD_ATTRS: dict[str, list[str]] = {
  6. "body": ["Body"],
  7. "document": ["DocumentHead", "Html", "Main", "NextScript"],
  8. "fragment": [
  9. "Fragment",
  10. "fragment",
  11. ],
  12. "error_boundary": [
  13. "ErrorBoundary",
  14. "error_boundary",
  15. ],
  16. "head": [
  17. "head",
  18. "Head",
  19. ],
  20. "link": ["RawLink", "ScriptTag"],
  21. "meta": ["Description", "Image", "Meta", "Title"],
  22. "script": ["Script", "script"],
  23. }
  24. __getattr__, __dir__, __all__ = lazy_loader.attach(
  25. __name__,
  26. submodules=_SUBMODULES,
  27. submod_attrs=_SUBMOD_ATTRS,
  28. )