scripts.py 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. """Element classes. This is an auto-generated file. Do not edit. See ../generate.py."""
  2. from typing import Union
  3. from reflex.vars import Var as Var
  4. from .base import BaseHTML
  5. class Canvas(BaseHTML):
  6. """Display the canvas element."""
  7. tag: str = "canvas"
  8. # The height of the canvas in CSS pixels
  9. height: Var[Union[str, int, bool]]
  10. # The width of the canvas in CSS pixels
  11. width: Var[Union[str, int, bool]]
  12. class Noscript(BaseHTML):
  13. """Display the noscript element."""
  14. tag: str = "noscript"
  15. # No unique attributes, only common ones are inherited
  16. class Script(BaseHTML):
  17. """Display the script element."""
  18. tag: str = "script"
  19. # Indicates that the script should be executed asynchronously
  20. async_: Var[Union[str, int, bool]]
  21. # Character encoding of the external script
  22. char_set: Var[Union[str, int, bool]]
  23. # Configures the CORS requests for the script
  24. cross_origin: Var[Union[str, int, bool]]
  25. # Indicates that the script should be executed after the page has finished parsing
  26. defer: Var[Union[str, int, bool]]
  27. # Security feature allowing browsers to verify what they fetch
  28. integrity: Var[Union[str, int, bool]]
  29. # Specifies the scripting language used in the type attribute
  30. language: Var[Union[str, int, bool]]
  31. # Specifies which referrer information to send when fetching the script
  32. referrer_policy: Var[Union[str, int, bool]]
  33. # URL of an external script
  34. src: Var[Union[str, int, bool]]
  35. # Specifies the MIME type of the script
  36. type: Var[Union[str, int, bool]]