link.py 929 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. """Display the title of the current page."""
  2. from reflex.components.component import Component
  3. from reflex.vars import Var
  4. class RawLink(Component):
  5. """A component that displays the title of the current page."""
  6. tag = "link"
  7. # The href.
  8. href: Var[str]
  9. # The type of link.
  10. rel: Var[str]
  11. class ScriptTag(Component):
  12. """A script tag with the specified type and source."""
  13. tag = "script"
  14. # The type of script represented.
  15. type_: Var[str]
  16. # The URI of an external script.
  17. source: Var[str]
  18. # Metadata to verify the content of the script.
  19. integrity: Var[str]
  20. # Whether to allow cross-origin requests.
  21. crossorigin: Var[str]
  22. # Indicates which referrer to send when fetching the script.
  23. referrer_policy: Var[str]
  24. # Whether to asynchronously load the script.
  25. is_async: Var[bool]
  26. # Whether to defer loading the script.
  27. defer: Var[bool]