123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241 |
- """Inline classes."""
- from typing import Union
- from reflex.vars.base import Var
- from .base import BaseHTML
- class A(BaseHTML): # Inherits common attributes from BaseMeta
- """Display the 'a' element."""
- tag = "a"
- # Specifies that the target (the file specified in the href attribute) will be downloaded when a user clicks on the hyperlink.
- download: Var[Union[str, int, bool]]
- # Specifies the URL of the page the link goes to
- href: Var[Union[str, int, bool]]
- # Specifies the language of the linked document
- href_lang: Var[Union[str, int, bool]]
- # Specifies what media/device the linked document is optimized for
- media: Var[Union[str, int, bool]]
- # Specifies which referrer is sent when fetching the resource
- ping: Var[Union[str, int, bool]]
- # Specifies the relationship between the current document and the linked document
- referrer_policy: Var[Union[str, int, bool]]
- # Specifies the relationship between the linked document and the current document
- rel: Var[Union[str, int, bool]]
- # Specifies the shape of the area
- shape: Var[Union[str, int, bool]]
- # Specifies where to open the linked document
- target: Var[Union[str, int, bool]]
- class Abbr(BaseHTML):
- """Display the abbr element."""
- tag = "abbr"
- class B(BaseHTML):
- """Display the b element."""
- tag = "b"
- class Bdi(BaseHTML):
- """Display the bdi element."""
- tag = "bdi"
- class Bdo(BaseHTML):
- """Display the bdo element."""
- tag = "bdo"
- class Br(BaseHTML):
- """Display the br element."""
- tag = "br"
- class Cite(BaseHTML):
- """Display the cite element."""
- tag = "cite"
- class Code(BaseHTML):
- """Display the code element."""
- tag = "code"
- class Data(BaseHTML):
- """Display the data element."""
- tag = "data"
- # Specifies the machine-readable translation of the data element.
- value: Var[Union[str, int, bool]]
- class Dfn(BaseHTML):
- """Display the dfn element."""
- tag = "dfn"
- class Em(BaseHTML):
- """Display the em element."""
- tag = "em"
- class I(BaseHTML): # noqa: E742
- """Display the i element."""
- tag = "i"
- class Kbd(BaseHTML):
- """Display the kbd element."""
- tag = "kbd"
- class Mark(BaseHTML):
- """Display the mark element."""
- tag = "mark"
- class Q(BaseHTML):
- """Display the q element."""
- tag = "q"
- # Specifies the source URL of the quote.
- cite: Var[Union[str, int, bool]]
- class Rp(BaseHTML):
- """Display the rp element."""
- tag = "rp"
- class Rt(BaseHTML):
- """Display the rt element."""
- tag = "rt"
- class Ruby(BaseHTML):
- """Display the ruby element."""
- tag = "ruby"
- class S(BaseHTML):
- """Display the s element."""
- tag = "s"
- class Samp(BaseHTML):
- """Display the samp element."""
- tag = "samp"
- class Small(BaseHTML):
- """Display the small element."""
- tag = "small"
- class Span(BaseHTML):
- """Display the span element."""
- tag = "span"
- class Strong(BaseHTML):
- """Display the strong element."""
- tag = "strong"
- class Sub(BaseHTML):
- """Display the sub element."""
- tag = "sub"
- class Sup(BaseHTML):
- """Display the sup element."""
- tag = "sup"
- class Time(BaseHTML):
- """Display the time element."""
- tag = "time"
- # Specifies the date and/or time of the element.
- date_time: Var[Union[str, int, bool]]
- class U(BaseHTML):
- """Display the u element."""
- tag = "u"
- class Wbr(BaseHTML):
- """Display the wbr element."""
- tag = "wbr"
- a = A.create
- abbr = Abbr.create
- b = B.create
- bdi = Bdi.create
- bdo = Bdo.create
- br = Br.create
- cite = Cite.create
- code = Code.create
- data = Data.create
- dfn = Dfn.create
- em = Em.create
- i = I.create
- kbd = Kbd.create
- mark = Mark.create
- q = Q.create
- rp = Rp.create
- rt = Rt.create
- ruby = Ruby.create
- s = S.create
- samp = Samp.create
- small = Small.create
- span = Span.create
- strong = Strong.create
- sub = Sub.create
- sup = Sup.create
- time = Time.create
- u = U.create
- wbr = Wbr.create
|