1
0

media.pyi 134 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456
  1. """Stub file for reflex/components/el/elements/media.py"""
  2. # ------------------- DO NOT EDIT ----------------------
  3. # This file was generated by `reflex/utils/pyi_generator.py`!
  4. # ------------------------------------------------------
  5. from typing import Any, Dict, Optional, Union, overload
  6. from reflex import ComponentNamespace
  7. from reflex.constants.colors import Color
  8. from reflex.event import BASE_STATE, EventType
  9. from reflex.style import Style
  10. from reflex.vars.base import Var
  11. from .base import BaseHTML
  12. class Area(BaseHTML):
  13. @overload
  14. @classmethod
  15. def create( # type: ignore
  16. cls,
  17. *children,
  18. alt: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  19. coords: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  20. download: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  21. href: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  22. href_lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  23. media: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  24. ping: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  25. referrer_policy: Optional[
  26. Union[Var[Union[bool, int, str]], bool, int, str]
  27. ] = None,
  28. rel: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  29. shape: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  30. target: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  31. access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  32. auto_capitalize: Optional[
  33. Union[Var[Union[bool, int, str]], bool, int, str]
  34. ] = None,
  35. content_editable: Optional[
  36. Union[Var[Union[bool, int, str]], bool, int, str]
  37. ] = None,
  38. context_menu: Optional[
  39. Union[Var[Union[bool, int, str]], bool, int, str]
  40. ] = None,
  41. dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  42. draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  43. enter_key_hint: Optional[
  44. Union[Var[Union[bool, int, str]], bool, int, str]
  45. ] = None,
  46. hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  47. input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  48. item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  49. lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  50. role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  51. slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  52. spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  53. tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  54. title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  55. style: Optional[Style] = None,
  56. key: Optional[Any] = None,
  57. id: Optional[Any] = None,
  58. class_name: Optional[Any] = None,
  59. autofocus: Optional[bool] = None,
  60. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  61. on_blur: Optional[EventType[[], BASE_STATE]] = None,
  62. on_click: Optional[EventType[[], BASE_STATE]] = None,
  63. on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
  64. on_double_click: Optional[EventType[[], BASE_STATE]] = None,
  65. on_focus: Optional[EventType[[], BASE_STATE]] = None,
  66. on_mount: Optional[EventType[[], BASE_STATE]] = None,
  67. on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
  68. on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
  69. on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
  70. on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
  71. on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
  72. on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
  73. on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
  74. on_scroll: Optional[EventType[[], BASE_STATE]] = None,
  75. on_unmount: Optional[EventType[[], BASE_STATE]] = None,
  76. **props,
  77. ) -> "Area":
  78. """Create the component.
  79. Args:
  80. *children: The children of the component.
  81. alt: Alternate text for the area, used for accessibility
  82. coords: Coordinates to define the shape of the area
  83. download: Specifies that the target will be downloaded when clicked
  84. href: Hyperlink reference for the area
  85. href_lang: Language of the linked resource
  86. media: Specifies what media/device the linked resource is optimized for
  87. ping: A list of URLs to be notified if the user follows the hyperlink
  88. referrer_policy: Specifies which referrer information to send with the link
  89. rel: Specifies the relationship of the target object to the link object
  90. shape: Defines the shape of the area (rectangle, circle, polygon)
  91. target: Specifies where to open the linked document
  92. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  93. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  94. content_editable: Indicates whether the element's content is editable.
  95. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  96. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  97. draggable: Defines whether the element can be dragged.
  98. enter_key_hint: Hints what media types the media element is able to play.
  99. hidden: Defines whether the element is hidden.
  100. input_mode: Defines the type of the element.
  101. item_prop: Defines the name of the element for metadata purposes.
  102. lang: Defines the language used in the element.
  103. role: Defines the role of the element.
  104. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  105. spell_check: Defines whether the element may be checked for spelling errors.
  106. tab_index: Defines the position of the current element in the tabbing order.
  107. title: Defines a tooltip for the element.
  108. style: The style of the component.
  109. key: A unique key for the component.
  110. id: The id for the component.
  111. class_name: The class name for the component.
  112. autofocus: Whether the component should take the focus once the page is loaded
  113. custom_attrs: custom attribute
  114. **props: The props of the component.
  115. Returns:
  116. The component.
  117. """
  118. ...
  119. class Audio(BaseHTML):
  120. @overload
  121. @classmethod
  122. def create( # type: ignore
  123. cls,
  124. *children,
  125. auto_play: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  126. buffered: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  127. controls: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  128. cross_origin: Optional[
  129. Union[Var[Union[bool, int, str]], bool, int, str]
  130. ] = None,
  131. loop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  132. muted: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  133. preload: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  134. src: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  135. access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  136. auto_capitalize: Optional[
  137. Union[Var[Union[bool, int, str]], bool, int, str]
  138. ] = None,
  139. content_editable: Optional[
  140. Union[Var[Union[bool, int, str]], bool, int, str]
  141. ] = None,
  142. context_menu: Optional[
  143. Union[Var[Union[bool, int, str]], bool, int, str]
  144. ] = None,
  145. dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  146. draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  147. enter_key_hint: Optional[
  148. Union[Var[Union[bool, int, str]], bool, int, str]
  149. ] = None,
  150. hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  151. input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  152. item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  153. lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  154. role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  155. slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  156. spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  157. tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  158. title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  159. style: Optional[Style] = None,
  160. key: Optional[Any] = None,
  161. id: Optional[Any] = None,
  162. class_name: Optional[Any] = None,
  163. autofocus: Optional[bool] = None,
  164. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  165. on_blur: Optional[EventType[[], BASE_STATE]] = None,
  166. on_click: Optional[EventType[[], BASE_STATE]] = None,
  167. on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
  168. on_double_click: Optional[EventType[[], BASE_STATE]] = None,
  169. on_focus: Optional[EventType[[], BASE_STATE]] = None,
  170. on_mount: Optional[EventType[[], BASE_STATE]] = None,
  171. on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
  172. on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
  173. on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
  174. on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
  175. on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
  176. on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
  177. on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
  178. on_scroll: Optional[EventType[[], BASE_STATE]] = None,
  179. on_unmount: Optional[EventType[[], BASE_STATE]] = None,
  180. **props,
  181. ) -> "Audio":
  182. """Create the component.
  183. Args:
  184. *children: The children of the component.
  185. auto_play: Specifies that the audio will start playing as soon as it is ready
  186. buffered: Represents the time range of the buffered media
  187. controls: Displays the standard audio controls
  188. cross_origin: Configures the CORS requests for the element
  189. loop: Specifies that the audio will loop
  190. muted: Indicates whether the audio is muted by default
  191. preload: Specifies how the audio file should be preloaded
  192. src: URL of the audio to play
  193. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  194. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  195. content_editable: Indicates whether the element's content is editable.
  196. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  197. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  198. draggable: Defines whether the element can be dragged.
  199. enter_key_hint: Hints what media types the media element is able to play.
  200. hidden: Defines whether the element is hidden.
  201. input_mode: Defines the type of the element.
  202. item_prop: Defines the name of the element for metadata purposes.
  203. lang: Defines the language used in the element.
  204. role: Defines the role of the element.
  205. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  206. spell_check: Defines whether the element may be checked for spelling errors.
  207. tab_index: Defines the position of the current element in the tabbing order.
  208. title: Defines a tooltip for the element.
  209. style: The style of the component.
  210. key: A unique key for the component.
  211. id: The id for the component.
  212. class_name: The class name for the component.
  213. autofocus: Whether the component should take the focus once the page is loaded
  214. custom_attrs: custom attribute
  215. **props: The props of the component.
  216. Returns:
  217. The component.
  218. """
  219. ...
  220. class Img(BaseHTML):
  221. @overload
  222. @classmethod
  223. def create( # type: ignore
  224. cls,
  225. *children,
  226. align: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  227. alt: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  228. cross_origin: Optional[
  229. Union[Var[Union[bool, int, str]], bool, int, str]
  230. ] = None,
  231. decoding: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  232. intrinsicsize: Optional[
  233. Union[Var[Union[bool, int, str]], bool, int, str]
  234. ] = None,
  235. ismap: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  236. loading: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  237. referrer_policy: Optional[
  238. Union[Var[Union[bool, int, str]], bool, int, str]
  239. ] = None,
  240. sizes: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  241. src: Optional[Union[Any, Var[Any]]] = None,
  242. src_set: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  243. use_map: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  244. access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  245. auto_capitalize: Optional[
  246. Union[Var[Union[bool, int, str]], bool, int, str]
  247. ] = None,
  248. content_editable: Optional[
  249. Union[Var[Union[bool, int, str]], bool, int, str]
  250. ] = None,
  251. context_menu: Optional[
  252. Union[Var[Union[bool, int, str]], bool, int, str]
  253. ] = None,
  254. dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  255. draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  256. enter_key_hint: Optional[
  257. Union[Var[Union[bool, int, str]], bool, int, str]
  258. ] = None,
  259. hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  260. input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  261. item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  262. lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  263. role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  264. slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  265. spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  266. tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  267. title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  268. style: Optional[Style] = None,
  269. key: Optional[Any] = None,
  270. id: Optional[Any] = None,
  271. class_name: Optional[Any] = None,
  272. autofocus: Optional[bool] = None,
  273. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  274. on_blur: Optional[EventType[[], BASE_STATE]] = None,
  275. on_click: Optional[EventType[[], BASE_STATE]] = None,
  276. on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
  277. on_double_click: Optional[EventType[[], BASE_STATE]] = None,
  278. on_focus: Optional[EventType[[], BASE_STATE]] = None,
  279. on_mount: Optional[EventType[[], BASE_STATE]] = None,
  280. on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
  281. on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
  282. on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
  283. on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
  284. on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
  285. on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
  286. on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
  287. on_scroll: Optional[EventType[[], BASE_STATE]] = None,
  288. on_unmount: Optional[EventType[[], BASE_STATE]] = None,
  289. **props,
  290. ) -> "Img":
  291. """Override create method to apply source attribute to value if user fails to pass in attribute.
  292. Args:
  293. *children: The children of the component.
  294. align: Image alignment with respect to its surrounding elements
  295. alt: Alternative text for the image
  296. cross_origin: Configures the CORS requests for the image
  297. decoding: How the image should be decoded
  298. intrinsicsize: Specifies an intrinsic size for the image
  299. ismap: Whether the image is a server-side image map
  300. loading: Specifies the loading behavior of the image
  301. referrer_policy: Referrer policy for the image
  302. sizes: Sizes of the image for different layouts
  303. src: URL of the image to display
  304. src_set: A set of source sizes and URLs for responsive images
  305. use_map: The name of the map to use with the image
  306. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  307. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  308. content_editable: Indicates whether the element's content is editable.
  309. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  310. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  311. draggable: Defines whether the element can be dragged.
  312. enter_key_hint: Hints what media types the media element is able to play.
  313. hidden: Defines whether the element is hidden.
  314. input_mode: Defines the type of the element.
  315. item_prop: Defines the name of the element for metadata purposes.
  316. lang: Defines the language used in the element.
  317. role: Defines the role of the element.
  318. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  319. spell_check: Defines whether the element may be checked for spelling errors.
  320. tab_index: Defines the position of the current element in the tabbing order.
  321. title: Defines a tooltip for the element.
  322. style: The style of the component.
  323. key: A unique key for the component.
  324. id: The id for the component.
  325. class_name: The class name for the component.
  326. autofocus: Whether the component should take the focus once the page is loaded
  327. custom_attrs: custom attribute
  328. **props: The props of the component.
  329. Returns:
  330. The component.
  331. """
  332. ...
  333. class Map(BaseHTML):
  334. @overload
  335. @classmethod
  336. def create( # type: ignore
  337. cls,
  338. *children,
  339. name: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  340. access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  341. auto_capitalize: Optional[
  342. Union[Var[Union[bool, int, str]], bool, int, str]
  343. ] = None,
  344. content_editable: Optional[
  345. Union[Var[Union[bool, int, str]], bool, int, str]
  346. ] = None,
  347. context_menu: Optional[
  348. Union[Var[Union[bool, int, str]], bool, int, str]
  349. ] = None,
  350. dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  351. draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  352. enter_key_hint: Optional[
  353. Union[Var[Union[bool, int, str]], bool, int, str]
  354. ] = None,
  355. hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  356. input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  357. item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  358. lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  359. role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  360. slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  361. spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  362. tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  363. title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  364. style: Optional[Style] = None,
  365. key: Optional[Any] = None,
  366. id: Optional[Any] = None,
  367. class_name: Optional[Any] = None,
  368. autofocus: Optional[bool] = None,
  369. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  370. on_blur: Optional[EventType[[], BASE_STATE]] = None,
  371. on_click: Optional[EventType[[], BASE_STATE]] = None,
  372. on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
  373. on_double_click: Optional[EventType[[], BASE_STATE]] = None,
  374. on_focus: Optional[EventType[[], BASE_STATE]] = None,
  375. on_mount: Optional[EventType[[], BASE_STATE]] = None,
  376. on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
  377. on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
  378. on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
  379. on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
  380. on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
  381. on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
  382. on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
  383. on_scroll: Optional[EventType[[], BASE_STATE]] = None,
  384. on_unmount: Optional[EventType[[], BASE_STATE]] = None,
  385. **props,
  386. ) -> "Map":
  387. """Create the component.
  388. Args:
  389. *children: The children of the component.
  390. name: Name of the map, referenced by the 'usemap' attribute in 'img' and 'object' elements
  391. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  392. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  393. content_editable: Indicates whether the element's content is editable.
  394. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  395. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  396. draggable: Defines whether the element can be dragged.
  397. enter_key_hint: Hints what media types the media element is able to play.
  398. hidden: Defines whether the element is hidden.
  399. input_mode: Defines the type of the element.
  400. item_prop: Defines the name of the element for metadata purposes.
  401. lang: Defines the language used in the element.
  402. role: Defines the role of the element.
  403. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  404. spell_check: Defines whether the element may be checked for spelling errors.
  405. tab_index: Defines the position of the current element in the tabbing order.
  406. title: Defines a tooltip for the element.
  407. style: The style of the component.
  408. key: A unique key for the component.
  409. id: The id for the component.
  410. class_name: The class name for the component.
  411. autofocus: Whether the component should take the focus once the page is loaded
  412. custom_attrs: custom attribute
  413. **props: The props of the component.
  414. Returns:
  415. The component.
  416. """
  417. ...
  418. class Track(BaseHTML):
  419. @overload
  420. @classmethod
  421. def create( # type: ignore
  422. cls,
  423. *children,
  424. default: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  425. kind: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  426. label: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  427. src: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  428. src_lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  429. access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  430. auto_capitalize: Optional[
  431. Union[Var[Union[bool, int, str]], bool, int, str]
  432. ] = None,
  433. content_editable: Optional[
  434. Union[Var[Union[bool, int, str]], bool, int, str]
  435. ] = None,
  436. context_menu: Optional[
  437. Union[Var[Union[bool, int, str]], bool, int, str]
  438. ] = None,
  439. dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  440. draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  441. enter_key_hint: Optional[
  442. Union[Var[Union[bool, int, str]], bool, int, str]
  443. ] = None,
  444. hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  445. input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  446. item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  447. lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  448. role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  449. slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  450. spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  451. tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  452. title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  453. style: Optional[Style] = None,
  454. key: Optional[Any] = None,
  455. id: Optional[Any] = None,
  456. class_name: Optional[Any] = None,
  457. autofocus: Optional[bool] = None,
  458. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  459. on_blur: Optional[EventType[[], BASE_STATE]] = None,
  460. on_click: Optional[EventType[[], BASE_STATE]] = None,
  461. on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
  462. on_double_click: Optional[EventType[[], BASE_STATE]] = None,
  463. on_focus: Optional[EventType[[], BASE_STATE]] = None,
  464. on_mount: Optional[EventType[[], BASE_STATE]] = None,
  465. on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
  466. on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
  467. on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
  468. on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
  469. on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
  470. on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
  471. on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
  472. on_scroll: Optional[EventType[[], BASE_STATE]] = None,
  473. on_unmount: Optional[EventType[[], BASE_STATE]] = None,
  474. **props,
  475. ) -> "Track":
  476. """Create the component.
  477. Args:
  478. *children: The children of the component.
  479. default: Indicates that the track should be enabled unless the user's preferences indicate otherwise
  480. kind: Specifies the kind of text track
  481. label: Title of the text track, used by the browser when listing available text tracks
  482. src: URL of the track file
  483. src_lang: Language of the track text data
  484. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  485. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  486. content_editable: Indicates whether the element's content is editable.
  487. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  488. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  489. draggable: Defines whether the element can be dragged.
  490. enter_key_hint: Hints what media types the media element is able to play.
  491. hidden: Defines whether the element is hidden.
  492. input_mode: Defines the type of the element.
  493. item_prop: Defines the name of the element for metadata purposes.
  494. lang: Defines the language used in the element.
  495. role: Defines the role of the element.
  496. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  497. spell_check: Defines whether the element may be checked for spelling errors.
  498. tab_index: Defines the position of the current element in the tabbing order.
  499. title: Defines a tooltip for the element.
  500. style: The style of the component.
  501. key: A unique key for the component.
  502. id: The id for the component.
  503. class_name: The class name for the component.
  504. autofocus: Whether the component should take the focus once the page is loaded
  505. custom_attrs: custom attribute
  506. **props: The props of the component.
  507. Returns:
  508. The component.
  509. """
  510. ...
  511. class Video(BaseHTML):
  512. @overload
  513. @classmethod
  514. def create( # type: ignore
  515. cls,
  516. *children,
  517. auto_play: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  518. buffered: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  519. controls: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  520. cross_origin: Optional[
  521. Union[Var[Union[bool, int, str]], bool, int, str]
  522. ] = None,
  523. loop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  524. muted: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  525. plays_inline: Optional[
  526. Union[Var[Union[bool, int, str]], bool, int, str]
  527. ] = None,
  528. poster: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  529. preload: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  530. src: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  531. access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  532. auto_capitalize: Optional[
  533. Union[Var[Union[bool, int, str]], bool, int, str]
  534. ] = None,
  535. content_editable: Optional[
  536. Union[Var[Union[bool, int, str]], bool, int, str]
  537. ] = None,
  538. context_menu: Optional[
  539. Union[Var[Union[bool, int, str]], bool, int, str]
  540. ] = None,
  541. dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  542. draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  543. enter_key_hint: Optional[
  544. Union[Var[Union[bool, int, str]], bool, int, str]
  545. ] = None,
  546. hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  547. input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  548. item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  549. lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  550. role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  551. slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  552. spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  553. tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  554. title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  555. style: Optional[Style] = None,
  556. key: Optional[Any] = None,
  557. id: Optional[Any] = None,
  558. class_name: Optional[Any] = None,
  559. autofocus: Optional[bool] = None,
  560. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  561. on_blur: Optional[EventType[[], BASE_STATE]] = None,
  562. on_click: Optional[EventType[[], BASE_STATE]] = None,
  563. on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
  564. on_double_click: Optional[EventType[[], BASE_STATE]] = None,
  565. on_focus: Optional[EventType[[], BASE_STATE]] = None,
  566. on_mount: Optional[EventType[[], BASE_STATE]] = None,
  567. on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
  568. on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
  569. on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
  570. on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
  571. on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
  572. on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
  573. on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
  574. on_scroll: Optional[EventType[[], BASE_STATE]] = None,
  575. on_unmount: Optional[EventType[[], BASE_STATE]] = None,
  576. **props,
  577. ) -> "Video":
  578. """Create the component.
  579. Args:
  580. *children: The children of the component.
  581. auto_play: Specifies that the video will start playing as soon as it is ready
  582. buffered: Represents the time range of the buffered media
  583. controls: Displays the standard video controls
  584. cross_origin: Configures the CORS requests for the video
  585. loop: Specifies that the video will loop
  586. muted: Indicates whether the video is muted by default
  587. plays_inline: Indicates that the video should play 'inline', inside its element's playback area
  588. poster: URL of an image to show while the video is downloading, or until the user hits the play button
  589. preload: Specifies how the video file should be preloaded
  590. src: URL of the video to play
  591. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  592. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  593. content_editable: Indicates whether the element's content is editable.
  594. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  595. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  596. draggable: Defines whether the element can be dragged.
  597. enter_key_hint: Hints what media types the media element is able to play.
  598. hidden: Defines whether the element is hidden.
  599. input_mode: Defines the type of the element.
  600. item_prop: Defines the name of the element for metadata purposes.
  601. lang: Defines the language used in the element.
  602. role: Defines the role of the element.
  603. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  604. spell_check: Defines whether the element may be checked for spelling errors.
  605. tab_index: Defines the position of the current element in the tabbing order.
  606. title: Defines a tooltip for the element.
  607. style: The style of the component.
  608. key: A unique key for the component.
  609. id: The id for the component.
  610. class_name: The class name for the component.
  611. autofocus: Whether the component should take the focus once the page is loaded
  612. custom_attrs: custom attribute
  613. **props: The props of the component.
  614. Returns:
  615. The component.
  616. """
  617. ...
  618. class Embed(BaseHTML):
  619. @overload
  620. @classmethod
  621. def create( # type: ignore
  622. cls,
  623. *children,
  624. src: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  625. type: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  626. access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  627. auto_capitalize: Optional[
  628. Union[Var[Union[bool, int, str]], bool, int, str]
  629. ] = None,
  630. content_editable: Optional[
  631. Union[Var[Union[bool, int, str]], bool, int, str]
  632. ] = None,
  633. context_menu: Optional[
  634. Union[Var[Union[bool, int, str]], bool, int, str]
  635. ] = None,
  636. dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  637. draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  638. enter_key_hint: Optional[
  639. Union[Var[Union[bool, int, str]], bool, int, str]
  640. ] = None,
  641. hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  642. input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  643. item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  644. lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  645. role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  646. slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  647. spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  648. tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  649. title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  650. style: Optional[Style] = None,
  651. key: Optional[Any] = None,
  652. id: Optional[Any] = None,
  653. class_name: Optional[Any] = None,
  654. autofocus: Optional[bool] = None,
  655. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  656. on_blur: Optional[EventType[[], BASE_STATE]] = None,
  657. on_click: Optional[EventType[[], BASE_STATE]] = None,
  658. on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
  659. on_double_click: Optional[EventType[[], BASE_STATE]] = None,
  660. on_focus: Optional[EventType[[], BASE_STATE]] = None,
  661. on_mount: Optional[EventType[[], BASE_STATE]] = None,
  662. on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
  663. on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
  664. on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
  665. on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
  666. on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
  667. on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
  668. on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
  669. on_scroll: Optional[EventType[[], BASE_STATE]] = None,
  670. on_unmount: Optional[EventType[[], BASE_STATE]] = None,
  671. **props,
  672. ) -> "Embed":
  673. """Create the component.
  674. Args:
  675. *children: The children of the component.
  676. src: URL of the embedded content
  677. type: Media type of the embedded content
  678. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  679. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  680. content_editable: Indicates whether the element's content is editable.
  681. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  682. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  683. draggable: Defines whether the element can be dragged.
  684. enter_key_hint: Hints what media types the media element is able to play.
  685. hidden: Defines whether the element is hidden.
  686. input_mode: Defines the type of the element.
  687. item_prop: Defines the name of the element for metadata purposes.
  688. lang: Defines the language used in the element.
  689. role: Defines the role of the element.
  690. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  691. spell_check: Defines whether the element may be checked for spelling errors.
  692. tab_index: Defines the position of the current element in the tabbing order.
  693. title: Defines a tooltip for the element.
  694. style: The style of the component.
  695. key: A unique key for the component.
  696. id: The id for the component.
  697. class_name: The class name for the component.
  698. autofocus: Whether the component should take the focus once the page is loaded
  699. custom_attrs: custom attribute
  700. **props: The props of the component.
  701. Returns:
  702. The component.
  703. """
  704. ...
  705. class Iframe(BaseHTML):
  706. @overload
  707. @classmethod
  708. def create( # type: ignore
  709. cls,
  710. *children,
  711. align: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  712. allow: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  713. csp: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  714. loading: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  715. name: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  716. referrer_policy: Optional[
  717. Union[Var[Union[bool, int, str]], bool, int, str]
  718. ] = None,
  719. sandbox: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  720. src: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  721. src_doc: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  722. access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  723. auto_capitalize: Optional[
  724. Union[Var[Union[bool, int, str]], bool, int, str]
  725. ] = None,
  726. content_editable: Optional[
  727. Union[Var[Union[bool, int, str]], bool, int, str]
  728. ] = None,
  729. context_menu: Optional[
  730. Union[Var[Union[bool, int, str]], bool, int, str]
  731. ] = None,
  732. dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  733. draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  734. enter_key_hint: Optional[
  735. Union[Var[Union[bool, int, str]], bool, int, str]
  736. ] = None,
  737. hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  738. input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  739. item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  740. lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  741. role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  742. slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  743. spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  744. tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  745. title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  746. style: Optional[Style] = None,
  747. key: Optional[Any] = None,
  748. id: Optional[Any] = None,
  749. class_name: Optional[Any] = None,
  750. autofocus: Optional[bool] = None,
  751. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  752. on_blur: Optional[EventType[[], BASE_STATE]] = None,
  753. on_click: Optional[EventType[[], BASE_STATE]] = None,
  754. on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
  755. on_double_click: Optional[EventType[[], BASE_STATE]] = None,
  756. on_focus: Optional[EventType[[], BASE_STATE]] = None,
  757. on_mount: Optional[EventType[[], BASE_STATE]] = None,
  758. on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
  759. on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
  760. on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
  761. on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
  762. on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
  763. on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
  764. on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
  765. on_scroll: Optional[EventType[[], BASE_STATE]] = None,
  766. on_unmount: Optional[EventType[[], BASE_STATE]] = None,
  767. **props,
  768. ) -> "Iframe":
  769. """Create the component.
  770. Args:
  771. *children: The children of the component.
  772. align: Alignment of the iframe within the page or surrounding elements
  773. allow: Permissions policy for the iframe
  774. csp: Content Security Policy to apply to the iframe's content
  775. loading: Specifies the loading behavior of the iframe
  776. name: Name of the iframe, used as a target for hyperlinks and forms
  777. referrer_policy: Referrer policy for the iframe
  778. sandbox: Security restrictions for the content in the iframe
  779. src: URL of the document to display in the iframe
  780. src_doc: HTML content to embed directly within the iframe
  781. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  782. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  783. content_editable: Indicates whether the element's content is editable.
  784. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  785. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  786. draggable: Defines whether the element can be dragged.
  787. enter_key_hint: Hints what media types the media element is able to play.
  788. hidden: Defines whether the element is hidden.
  789. input_mode: Defines the type of the element.
  790. item_prop: Defines the name of the element for metadata purposes.
  791. lang: Defines the language used in the element.
  792. role: Defines the role of the element.
  793. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  794. spell_check: Defines whether the element may be checked for spelling errors.
  795. tab_index: Defines the position of the current element in the tabbing order.
  796. title: Defines a tooltip for the element.
  797. style: The style of the component.
  798. key: A unique key for the component.
  799. id: The id for the component.
  800. class_name: The class name for the component.
  801. autofocus: Whether the component should take the focus once the page is loaded
  802. custom_attrs: custom attribute
  803. **props: The props of the component.
  804. Returns:
  805. The component.
  806. """
  807. ...
  808. class Object(BaseHTML):
  809. @overload
  810. @classmethod
  811. def create( # type: ignore
  812. cls,
  813. *children,
  814. data: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  815. form: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  816. name: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  817. type: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  818. use_map: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  819. access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  820. auto_capitalize: Optional[
  821. Union[Var[Union[bool, int, str]], bool, int, str]
  822. ] = None,
  823. content_editable: Optional[
  824. Union[Var[Union[bool, int, str]], bool, int, str]
  825. ] = None,
  826. context_menu: Optional[
  827. Union[Var[Union[bool, int, str]], bool, int, str]
  828. ] = None,
  829. dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  830. draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  831. enter_key_hint: Optional[
  832. Union[Var[Union[bool, int, str]], bool, int, str]
  833. ] = None,
  834. hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  835. input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  836. item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  837. lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  838. role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  839. slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  840. spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  841. tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  842. title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  843. style: Optional[Style] = None,
  844. key: Optional[Any] = None,
  845. id: Optional[Any] = None,
  846. class_name: Optional[Any] = None,
  847. autofocus: Optional[bool] = None,
  848. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  849. on_blur: Optional[EventType[[], BASE_STATE]] = None,
  850. on_click: Optional[EventType[[], BASE_STATE]] = None,
  851. on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
  852. on_double_click: Optional[EventType[[], BASE_STATE]] = None,
  853. on_focus: Optional[EventType[[], BASE_STATE]] = None,
  854. on_mount: Optional[EventType[[], BASE_STATE]] = None,
  855. on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
  856. on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
  857. on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
  858. on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
  859. on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
  860. on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
  861. on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
  862. on_scroll: Optional[EventType[[], BASE_STATE]] = None,
  863. on_unmount: Optional[EventType[[], BASE_STATE]] = None,
  864. **props,
  865. ) -> "Object":
  866. """Create the component.
  867. Args:
  868. *children: The children of the component.
  869. data: URL of the data to be used by the object
  870. form: Associates the object with a form element
  871. name: Name of the object, used for scripting or as a target for forms and links
  872. type: Media type of the data specified in the data attribute
  873. use_map: Name of an image map to use with the object
  874. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  875. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  876. content_editable: Indicates whether the element's content is editable.
  877. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  878. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  879. draggable: Defines whether the element can be dragged.
  880. enter_key_hint: Hints what media types the media element is able to play.
  881. hidden: Defines whether the element is hidden.
  882. input_mode: Defines the type of the element.
  883. item_prop: Defines the name of the element for metadata purposes.
  884. lang: Defines the language used in the element.
  885. role: Defines the role of the element.
  886. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  887. spell_check: Defines whether the element may be checked for spelling errors.
  888. tab_index: Defines the position of the current element in the tabbing order.
  889. title: Defines a tooltip for the element.
  890. style: The style of the component.
  891. key: A unique key for the component.
  892. id: The id for the component.
  893. class_name: The class name for the component.
  894. autofocus: Whether the component should take the focus once the page is loaded
  895. custom_attrs: custom attribute
  896. **props: The props of the component.
  897. Returns:
  898. The component.
  899. """
  900. ...
  901. class Picture(BaseHTML):
  902. @overload
  903. @classmethod
  904. def create( # type: ignore
  905. cls,
  906. *children,
  907. access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  908. auto_capitalize: Optional[
  909. Union[Var[Union[bool, int, str]], bool, int, str]
  910. ] = None,
  911. content_editable: Optional[
  912. Union[Var[Union[bool, int, str]], bool, int, str]
  913. ] = None,
  914. context_menu: Optional[
  915. Union[Var[Union[bool, int, str]], bool, int, str]
  916. ] = None,
  917. dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  918. draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  919. enter_key_hint: Optional[
  920. Union[Var[Union[bool, int, str]], bool, int, str]
  921. ] = None,
  922. hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  923. input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  924. item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  925. lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  926. role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  927. slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  928. spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  929. tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  930. title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  931. style: Optional[Style] = None,
  932. key: Optional[Any] = None,
  933. id: Optional[Any] = None,
  934. class_name: Optional[Any] = None,
  935. autofocus: Optional[bool] = None,
  936. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  937. on_blur: Optional[EventType[[], BASE_STATE]] = None,
  938. on_click: Optional[EventType[[], BASE_STATE]] = None,
  939. on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
  940. on_double_click: Optional[EventType[[], BASE_STATE]] = None,
  941. on_focus: Optional[EventType[[], BASE_STATE]] = None,
  942. on_mount: Optional[EventType[[], BASE_STATE]] = None,
  943. on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
  944. on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
  945. on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
  946. on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
  947. on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
  948. on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
  949. on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
  950. on_scroll: Optional[EventType[[], BASE_STATE]] = None,
  951. on_unmount: Optional[EventType[[], BASE_STATE]] = None,
  952. **props,
  953. ) -> "Picture":
  954. """Create the component.
  955. Args:
  956. *children: The children of the component.
  957. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  958. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  959. content_editable: Indicates whether the element's content is editable.
  960. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  961. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  962. draggable: Defines whether the element can be dragged.
  963. enter_key_hint: Hints what media types the media element is able to play.
  964. hidden: Defines whether the element is hidden.
  965. input_mode: Defines the type of the element.
  966. item_prop: Defines the name of the element for metadata purposes.
  967. lang: Defines the language used in the element.
  968. role: Defines the role of the element.
  969. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  970. spell_check: Defines whether the element may be checked for spelling errors.
  971. tab_index: Defines the position of the current element in the tabbing order.
  972. title: Defines a tooltip for the element.
  973. style: The style of the component.
  974. key: A unique key for the component.
  975. id: The id for the component.
  976. class_name: The class name for the component.
  977. autofocus: Whether the component should take the focus once the page is loaded
  978. custom_attrs: custom attribute
  979. **props: The props of the component.
  980. Returns:
  981. The component.
  982. """
  983. ...
  984. class Portal(BaseHTML):
  985. @overload
  986. @classmethod
  987. def create( # type: ignore
  988. cls,
  989. *children,
  990. access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  991. auto_capitalize: Optional[
  992. Union[Var[Union[bool, int, str]], bool, int, str]
  993. ] = None,
  994. content_editable: Optional[
  995. Union[Var[Union[bool, int, str]], bool, int, str]
  996. ] = None,
  997. context_menu: Optional[
  998. Union[Var[Union[bool, int, str]], bool, int, str]
  999. ] = None,
  1000. dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1001. draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1002. enter_key_hint: Optional[
  1003. Union[Var[Union[bool, int, str]], bool, int, str]
  1004. ] = None,
  1005. hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1006. input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1007. item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1008. lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1009. role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1010. slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1011. spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1012. tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1013. title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1014. style: Optional[Style] = None,
  1015. key: Optional[Any] = None,
  1016. id: Optional[Any] = None,
  1017. class_name: Optional[Any] = None,
  1018. autofocus: Optional[bool] = None,
  1019. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  1020. on_blur: Optional[EventType[[], BASE_STATE]] = None,
  1021. on_click: Optional[EventType[[], BASE_STATE]] = None,
  1022. on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
  1023. on_double_click: Optional[EventType[[], BASE_STATE]] = None,
  1024. on_focus: Optional[EventType[[], BASE_STATE]] = None,
  1025. on_mount: Optional[EventType[[], BASE_STATE]] = None,
  1026. on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
  1027. on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
  1028. on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
  1029. on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
  1030. on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
  1031. on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
  1032. on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
  1033. on_scroll: Optional[EventType[[], BASE_STATE]] = None,
  1034. on_unmount: Optional[EventType[[], BASE_STATE]] = None,
  1035. **props,
  1036. ) -> "Portal":
  1037. """Create the component.
  1038. Args:
  1039. *children: The children of the component.
  1040. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  1041. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  1042. content_editable: Indicates whether the element's content is editable.
  1043. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  1044. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  1045. draggable: Defines whether the element can be dragged.
  1046. enter_key_hint: Hints what media types the media element is able to play.
  1047. hidden: Defines whether the element is hidden.
  1048. input_mode: Defines the type of the element.
  1049. item_prop: Defines the name of the element for metadata purposes.
  1050. lang: Defines the language used in the element.
  1051. role: Defines the role of the element.
  1052. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  1053. spell_check: Defines whether the element may be checked for spelling errors.
  1054. tab_index: Defines the position of the current element in the tabbing order.
  1055. title: Defines a tooltip for the element.
  1056. style: The style of the component.
  1057. key: A unique key for the component.
  1058. id: The id for the component.
  1059. class_name: The class name for the component.
  1060. autofocus: Whether the component should take the focus once the page is loaded
  1061. custom_attrs: custom attribute
  1062. **props: The props of the component.
  1063. Returns:
  1064. The component.
  1065. """
  1066. ...
  1067. class Source(BaseHTML):
  1068. @overload
  1069. @classmethod
  1070. def create( # type: ignore
  1071. cls,
  1072. *children,
  1073. media: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1074. sizes: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1075. src: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1076. src_set: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1077. type: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1078. access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1079. auto_capitalize: Optional[
  1080. Union[Var[Union[bool, int, str]], bool, int, str]
  1081. ] = None,
  1082. content_editable: Optional[
  1083. Union[Var[Union[bool, int, str]], bool, int, str]
  1084. ] = None,
  1085. context_menu: Optional[
  1086. Union[Var[Union[bool, int, str]], bool, int, str]
  1087. ] = None,
  1088. dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1089. draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1090. enter_key_hint: Optional[
  1091. Union[Var[Union[bool, int, str]], bool, int, str]
  1092. ] = None,
  1093. hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1094. input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1095. item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1096. lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1097. role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1098. slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1099. spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1100. tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1101. title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1102. style: Optional[Style] = None,
  1103. key: Optional[Any] = None,
  1104. id: Optional[Any] = None,
  1105. class_name: Optional[Any] = None,
  1106. autofocus: Optional[bool] = None,
  1107. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  1108. on_blur: Optional[EventType[[], BASE_STATE]] = None,
  1109. on_click: Optional[EventType[[], BASE_STATE]] = None,
  1110. on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
  1111. on_double_click: Optional[EventType[[], BASE_STATE]] = None,
  1112. on_focus: Optional[EventType[[], BASE_STATE]] = None,
  1113. on_mount: Optional[EventType[[], BASE_STATE]] = None,
  1114. on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
  1115. on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
  1116. on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
  1117. on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
  1118. on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
  1119. on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
  1120. on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
  1121. on_scroll: Optional[EventType[[], BASE_STATE]] = None,
  1122. on_unmount: Optional[EventType[[], BASE_STATE]] = None,
  1123. **props,
  1124. ) -> "Source":
  1125. """Create the component.
  1126. Args:
  1127. *children: The children of the component.
  1128. media: Media query indicating what device the linked resource is optimized for
  1129. sizes: Sizes of the source for different layouts
  1130. src: URL of the media file or an image for the element to use
  1131. src_set: A set of source sizes and URLs for responsive images
  1132. type: Media type of the source
  1133. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  1134. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  1135. content_editable: Indicates whether the element's content is editable.
  1136. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  1137. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  1138. draggable: Defines whether the element can be dragged.
  1139. enter_key_hint: Hints what media types the media element is able to play.
  1140. hidden: Defines whether the element is hidden.
  1141. input_mode: Defines the type of the element.
  1142. item_prop: Defines the name of the element for metadata purposes.
  1143. lang: Defines the language used in the element.
  1144. role: Defines the role of the element.
  1145. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  1146. spell_check: Defines whether the element may be checked for spelling errors.
  1147. tab_index: Defines the position of the current element in the tabbing order.
  1148. title: Defines a tooltip for the element.
  1149. style: The style of the component.
  1150. key: A unique key for the component.
  1151. id: The id for the component.
  1152. class_name: The class name for the component.
  1153. autofocus: Whether the component should take the focus once the page is loaded
  1154. custom_attrs: custom attribute
  1155. **props: The props of the component.
  1156. Returns:
  1157. The component.
  1158. """
  1159. ...
  1160. class Svg(BaseHTML):
  1161. @overload
  1162. @classmethod
  1163. def create( # type: ignore
  1164. cls,
  1165. *children,
  1166. width: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1167. height: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1168. xmlns: Optional[Union[Var[str], str]] = None,
  1169. access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1170. auto_capitalize: Optional[
  1171. Union[Var[Union[bool, int, str]], bool, int, str]
  1172. ] = None,
  1173. content_editable: Optional[
  1174. Union[Var[Union[bool, int, str]], bool, int, str]
  1175. ] = None,
  1176. context_menu: Optional[
  1177. Union[Var[Union[bool, int, str]], bool, int, str]
  1178. ] = None,
  1179. dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1180. draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1181. enter_key_hint: Optional[
  1182. Union[Var[Union[bool, int, str]], bool, int, str]
  1183. ] = None,
  1184. hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1185. input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1186. item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1187. lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1188. role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1189. slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1190. spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1191. tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1192. title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1193. style: Optional[Style] = None,
  1194. key: Optional[Any] = None,
  1195. id: Optional[Any] = None,
  1196. class_name: Optional[Any] = None,
  1197. autofocus: Optional[bool] = None,
  1198. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  1199. on_blur: Optional[EventType[[], BASE_STATE]] = None,
  1200. on_click: Optional[EventType[[], BASE_STATE]] = None,
  1201. on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
  1202. on_double_click: Optional[EventType[[], BASE_STATE]] = None,
  1203. on_focus: Optional[EventType[[], BASE_STATE]] = None,
  1204. on_mount: Optional[EventType[[], BASE_STATE]] = None,
  1205. on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
  1206. on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
  1207. on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
  1208. on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
  1209. on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
  1210. on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
  1211. on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
  1212. on_scroll: Optional[EventType[[], BASE_STATE]] = None,
  1213. on_unmount: Optional[EventType[[], BASE_STATE]] = None,
  1214. **props,
  1215. ) -> "Svg":
  1216. """Create the component.
  1217. Args:
  1218. *children: The children of the component.
  1219. width: The width of the svg.
  1220. height: The height of the svg.
  1221. xmlns: The XML namespace declaration.
  1222. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  1223. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  1224. content_editable: Indicates whether the element's content is editable.
  1225. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  1226. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  1227. draggable: Defines whether the element can be dragged.
  1228. enter_key_hint: Hints what media types the media element is able to play.
  1229. hidden: Defines whether the element is hidden.
  1230. input_mode: Defines the type of the element.
  1231. item_prop: Defines the name of the element for metadata purposes.
  1232. lang: Defines the language used in the element.
  1233. role: Defines the role of the element.
  1234. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  1235. spell_check: Defines whether the element may be checked for spelling errors.
  1236. tab_index: Defines the position of the current element in the tabbing order.
  1237. title: Defines a tooltip for the element.
  1238. style: The style of the component.
  1239. key: A unique key for the component.
  1240. id: The id for the component.
  1241. class_name: The class name for the component.
  1242. autofocus: Whether the component should take the focus once the page is loaded
  1243. custom_attrs: custom attribute
  1244. **props: The props of the component.
  1245. Returns:
  1246. The component.
  1247. """
  1248. ...
  1249. class Text(BaseHTML):
  1250. @overload
  1251. @classmethod
  1252. def create( # type: ignore
  1253. cls,
  1254. *children,
  1255. x: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1256. y: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1257. dx: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1258. dy: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1259. rotate: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1260. length_adjust: Optional[Union[Var[str], str]] = None,
  1261. text_length: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1262. access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1263. auto_capitalize: Optional[
  1264. Union[Var[Union[bool, int, str]], bool, int, str]
  1265. ] = None,
  1266. content_editable: Optional[
  1267. Union[Var[Union[bool, int, str]], bool, int, str]
  1268. ] = None,
  1269. context_menu: Optional[
  1270. Union[Var[Union[bool, int, str]], bool, int, str]
  1271. ] = None,
  1272. dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1273. draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1274. enter_key_hint: Optional[
  1275. Union[Var[Union[bool, int, str]], bool, int, str]
  1276. ] = None,
  1277. hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1278. input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1279. item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1280. lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1281. role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1282. slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1283. spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1284. tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1285. title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1286. style: Optional[Style] = None,
  1287. key: Optional[Any] = None,
  1288. id: Optional[Any] = None,
  1289. class_name: Optional[Any] = None,
  1290. autofocus: Optional[bool] = None,
  1291. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  1292. on_blur: Optional[EventType[[], BASE_STATE]] = None,
  1293. on_click: Optional[EventType[[], BASE_STATE]] = None,
  1294. on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
  1295. on_double_click: Optional[EventType[[], BASE_STATE]] = None,
  1296. on_focus: Optional[EventType[[], BASE_STATE]] = None,
  1297. on_mount: Optional[EventType[[], BASE_STATE]] = None,
  1298. on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
  1299. on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
  1300. on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
  1301. on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
  1302. on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
  1303. on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
  1304. on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
  1305. on_scroll: Optional[EventType[[], BASE_STATE]] = None,
  1306. on_unmount: Optional[EventType[[], BASE_STATE]] = None,
  1307. **props,
  1308. ) -> "Text":
  1309. """Create the component.
  1310. Args:
  1311. *children: The children of the component.
  1312. x: The x coordinate of the starting point of the text baseline.
  1313. y: The y coordinate of the starting point of the text baseline.
  1314. dx: Shifts the text position horizontally from a previous text element.
  1315. dy: Shifts the text position vertically from a previous text element.
  1316. rotate: Rotates orientation of each individual glyph.
  1317. length_adjust: How the text is stretched or compressed to fit the width defined by the text_length attribute.
  1318. text_length: A width that the text should be scaled to fit.
  1319. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  1320. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  1321. content_editable: Indicates whether the element's content is editable.
  1322. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  1323. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  1324. draggable: Defines whether the element can be dragged.
  1325. enter_key_hint: Hints what media types the media element is able to play.
  1326. hidden: Defines whether the element is hidden.
  1327. input_mode: Defines the type of the element.
  1328. item_prop: Defines the name of the element for metadata purposes.
  1329. lang: Defines the language used in the element.
  1330. role: Defines the role of the element.
  1331. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  1332. spell_check: Defines whether the element may be checked for spelling errors.
  1333. tab_index: Defines the position of the current element in the tabbing order.
  1334. title: Defines a tooltip for the element.
  1335. style: The style of the component.
  1336. key: A unique key for the component.
  1337. id: The id for the component.
  1338. class_name: The class name for the component.
  1339. autofocus: Whether the component should take the focus once the page is loaded
  1340. custom_attrs: custom attribute
  1341. **props: The props of the component.
  1342. Returns:
  1343. The component.
  1344. """
  1345. ...
  1346. class Line(BaseHTML):
  1347. @overload
  1348. @classmethod
  1349. def create( # type: ignore
  1350. cls,
  1351. *children,
  1352. x1: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1353. x2: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1354. y1: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1355. y2: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1356. path_length: Optional[Union[Var[int], int]] = None,
  1357. access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1358. auto_capitalize: Optional[
  1359. Union[Var[Union[bool, int, str]], bool, int, str]
  1360. ] = None,
  1361. content_editable: Optional[
  1362. Union[Var[Union[bool, int, str]], bool, int, str]
  1363. ] = None,
  1364. context_menu: Optional[
  1365. Union[Var[Union[bool, int, str]], bool, int, str]
  1366. ] = None,
  1367. dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1368. draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1369. enter_key_hint: Optional[
  1370. Union[Var[Union[bool, int, str]], bool, int, str]
  1371. ] = None,
  1372. hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1373. input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1374. item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1375. lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1376. role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1377. slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1378. spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1379. tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1380. title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1381. style: Optional[Style] = None,
  1382. key: Optional[Any] = None,
  1383. id: Optional[Any] = None,
  1384. class_name: Optional[Any] = None,
  1385. autofocus: Optional[bool] = None,
  1386. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  1387. on_blur: Optional[EventType[[], BASE_STATE]] = None,
  1388. on_click: Optional[EventType[[], BASE_STATE]] = None,
  1389. on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
  1390. on_double_click: Optional[EventType[[], BASE_STATE]] = None,
  1391. on_focus: Optional[EventType[[], BASE_STATE]] = None,
  1392. on_mount: Optional[EventType[[], BASE_STATE]] = None,
  1393. on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
  1394. on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
  1395. on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
  1396. on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
  1397. on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
  1398. on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
  1399. on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
  1400. on_scroll: Optional[EventType[[], BASE_STATE]] = None,
  1401. on_unmount: Optional[EventType[[], BASE_STATE]] = None,
  1402. **props,
  1403. ) -> "Line":
  1404. """Create the component.
  1405. Args:
  1406. *children: The children of the component.
  1407. x1: The x-axis coordinate of the line starting point.
  1408. x2: The x-axis coordinate of the the line ending point.
  1409. y1: The y-axis coordinate of the line starting point.
  1410. y2: The y-axis coordinate of the the line ending point.
  1411. path_length: The total path length, in user units.
  1412. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  1413. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  1414. content_editable: Indicates whether the element's content is editable.
  1415. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  1416. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  1417. draggable: Defines whether the element can be dragged.
  1418. enter_key_hint: Hints what media types the media element is able to play.
  1419. hidden: Defines whether the element is hidden.
  1420. input_mode: Defines the type of the element.
  1421. item_prop: Defines the name of the element for metadata purposes.
  1422. lang: Defines the language used in the element.
  1423. role: Defines the role of the element.
  1424. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  1425. spell_check: Defines whether the element may be checked for spelling errors.
  1426. tab_index: Defines the position of the current element in the tabbing order.
  1427. title: Defines a tooltip for the element.
  1428. style: The style of the component.
  1429. key: A unique key for the component.
  1430. id: The id for the component.
  1431. class_name: The class name for the component.
  1432. autofocus: Whether the component should take the focus once the page is loaded
  1433. custom_attrs: custom attribute
  1434. **props: The props of the component.
  1435. Returns:
  1436. The component.
  1437. """
  1438. ...
  1439. class Circle(BaseHTML):
  1440. @overload
  1441. @classmethod
  1442. def create( # type: ignore
  1443. cls,
  1444. *children,
  1445. cx: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1446. cy: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1447. r: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1448. path_length: Optional[Union[Var[int], int]] = None,
  1449. access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1450. auto_capitalize: Optional[
  1451. Union[Var[Union[bool, int, str]], bool, int, str]
  1452. ] = None,
  1453. content_editable: Optional[
  1454. Union[Var[Union[bool, int, str]], bool, int, str]
  1455. ] = None,
  1456. context_menu: Optional[
  1457. Union[Var[Union[bool, int, str]], bool, int, str]
  1458. ] = None,
  1459. dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1460. draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1461. enter_key_hint: Optional[
  1462. Union[Var[Union[bool, int, str]], bool, int, str]
  1463. ] = None,
  1464. hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1465. input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1466. item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1467. lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1468. role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1469. slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1470. spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1471. tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1472. title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1473. style: Optional[Style] = None,
  1474. key: Optional[Any] = None,
  1475. id: Optional[Any] = None,
  1476. class_name: Optional[Any] = None,
  1477. autofocus: Optional[bool] = None,
  1478. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  1479. on_blur: Optional[EventType[[], BASE_STATE]] = None,
  1480. on_click: Optional[EventType[[], BASE_STATE]] = None,
  1481. on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
  1482. on_double_click: Optional[EventType[[], BASE_STATE]] = None,
  1483. on_focus: Optional[EventType[[], BASE_STATE]] = None,
  1484. on_mount: Optional[EventType[[], BASE_STATE]] = None,
  1485. on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
  1486. on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
  1487. on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
  1488. on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
  1489. on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
  1490. on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
  1491. on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
  1492. on_scroll: Optional[EventType[[], BASE_STATE]] = None,
  1493. on_unmount: Optional[EventType[[], BASE_STATE]] = None,
  1494. **props,
  1495. ) -> "Circle":
  1496. """Create the component.
  1497. Args:
  1498. *children: The children of the component.
  1499. cx: The x-axis coordinate of the center of the circle.
  1500. cy: The y-axis coordinate of the center of the circle.
  1501. r: The radius of the circle.
  1502. path_length: The total length for the circle's circumference, in user units.
  1503. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  1504. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  1505. content_editable: Indicates whether the element's content is editable.
  1506. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  1507. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  1508. draggable: Defines whether the element can be dragged.
  1509. enter_key_hint: Hints what media types the media element is able to play.
  1510. hidden: Defines whether the element is hidden.
  1511. input_mode: Defines the type of the element.
  1512. item_prop: Defines the name of the element for metadata purposes.
  1513. lang: Defines the language used in the element.
  1514. role: Defines the role of the element.
  1515. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  1516. spell_check: Defines whether the element may be checked for spelling errors.
  1517. tab_index: Defines the position of the current element in the tabbing order.
  1518. title: Defines a tooltip for the element.
  1519. style: The style of the component.
  1520. key: A unique key for the component.
  1521. id: The id for the component.
  1522. class_name: The class name for the component.
  1523. autofocus: Whether the component should take the focus once the page is loaded
  1524. custom_attrs: custom attribute
  1525. **props: The props of the component.
  1526. Returns:
  1527. The component.
  1528. """
  1529. ...
  1530. class Ellipse(BaseHTML):
  1531. @overload
  1532. @classmethod
  1533. def create( # type: ignore
  1534. cls,
  1535. *children,
  1536. cx: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1537. cy: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1538. rx: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1539. ry: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1540. path_length: Optional[Union[Var[int], int]] = None,
  1541. access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1542. auto_capitalize: Optional[
  1543. Union[Var[Union[bool, int, str]], bool, int, str]
  1544. ] = None,
  1545. content_editable: Optional[
  1546. Union[Var[Union[bool, int, str]], bool, int, str]
  1547. ] = None,
  1548. context_menu: Optional[
  1549. Union[Var[Union[bool, int, str]], bool, int, str]
  1550. ] = None,
  1551. dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1552. draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1553. enter_key_hint: Optional[
  1554. Union[Var[Union[bool, int, str]], bool, int, str]
  1555. ] = None,
  1556. hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1557. input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1558. item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1559. lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1560. role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1561. slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1562. spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1563. tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1564. title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1565. style: Optional[Style] = None,
  1566. key: Optional[Any] = None,
  1567. id: Optional[Any] = None,
  1568. class_name: Optional[Any] = None,
  1569. autofocus: Optional[bool] = None,
  1570. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  1571. on_blur: Optional[EventType[[], BASE_STATE]] = None,
  1572. on_click: Optional[EventType[[], BASE_STATE]] = None,
  1573. on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
  1574. on_double_click: Optional[EventType[[], BASE_STATE]] = None,
  1575. on_focus: Optional[EventType[[], BASE_STATE]] = None,
  1576. on_mount: Optional[EventType[[], BASE_STATE]] = None,
  1577. on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
  1578. on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
  1579. on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
  1580. on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
  1581. on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
  1582. on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
  1583. on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
  1584. on_scroll: Optional[EventType[[], BASE_STATE]] = None,
  1585. on_unmount: Optional[EventType[[], BASE_STATE]] = None,
  1586. **props,
  1587. ) -> "Ellipse":
  1588. """Create the component.
  1589. Args:
  1590. *children: The children of the component.
  1591. cx: The x position of the center of the ellipse.
  1592. cy: The y position of the center of the ellipse.
  1593. rx: The radius of the ellipse on the x axis.
  1594. ry: The radius of the ellipse on the y axis.
  1595. path_length: The total length for the ellipse's circumference, in user units.
  1596. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  1597. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  1598. content_editable: Indicates whether the element's content is editable.
  1599. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  1600. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  1601. draggable: Defines whether the element can be dragged.
  1602. enter_key_hint: Hints what media types the media element is able to play.
  1603. hidden: Defines whether the element is hidden.
  1604. input_mode: Defines the type of the element.
  1605. item_prop: Defines the name of the element for metadata purposes.
  1606. lang: Defines the language used in the element.
  1607. role: Defines the role of the element.
  1608. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  1609. spell_check: Defines whether the element may be checked for spelling errors.
  1610. tab_index: Defines the position of the current element in the tabbing order.
  1611. title: Defines a tooltip for the element.
  1612. style: The style of the component.
  1613. key: A unique key for the component.
  1614. id: The id for the component.
  1615. class_name: The class name for the component.
  1616. autofocus: Whether the component should take the focus once the page is loaded
  1617. custom_attrs: custom attribute
  1618. **props: The props of the component.
  1619. Returns:
  1620. The component.
  1621. """
  1622. ...
  1623. class Rect(BaseHTML):
  1624. @overload
  1625. @classmethod
  1626. def create( # type: ignore
  1627. cls,
  1628. *children,
  1629. x: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1630. y: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1631. width: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1632. height: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1633. rx: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1634. ry: Optional[Union[Var[Union[int, str]], int, str]] = None,
  1635. path_length: Optional[Union[Var[int], int]] = None,
  1636. access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1637. auto_capitalize: Optional[
  1638. Union[Var[Union[bool, int, str]], bool, int, str]
  1639. ] = None,
  1640. content_editable: Optional[
  1641. Union[Var[Union[bool, int, str]], bool, int, str]
  1642. ] = None,
  1643. context_menu: Optional[
  1644. Union[Var[Union[bool, int, str]], bool, int, str]
  1645. ] = None,
  1646. dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1647. draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1648. enter_key_hint: Optional[
  1649. Union[Var[Union[bool, int, str]], bool, int, str]
  1650. ] = None,
  1651. hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1652. input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1653. item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1654. lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1655. role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1656. slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1657. spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1658. tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1659. title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1660. style: Optional[Style] = None,
  1661. key: Optional[Any] = None,
  1662. id: Optional[Any] = None,
  1663. class_name: Optional[Any] = None,
  1664. autofocus: Optional[bool] = None,
  1665. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  1666. on_blur: Optional[EventType[[], BASE_STATE]] = None,
  1667. on_click: Optional[EventType[[], BASE_STATE]] = None,
  1668. on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
  1669. on_double_click: Optional[EventType[[], BASE_STATE]] = None,
  1670. on_focus: Optional[EventType[[], BASE_STATE]] = None,
  1671. on_mount: Optional[EventType[[], BASE_STATE]] = None,
  1672. on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
  1673. on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
  1674. on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
  1675. on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
  1676. on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
  1677. on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
  1678. on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
  1679. on_scroll: Optional[EventType[[], BASE_STATE]] = None,
  1680. on_unmount: Optional[EventType[[], BASE_STATE]] = None,
  1681. **props,
  1682. ) -> "Rect":
  1683. """Create the component.
  1684. Args:
  1685. *children: The children of the component.
  1686. x: The x coordinate of the rect.
  1687. y: The y coordinate of the rect.
  1688. width: The width of the rect
  1689. height: The height of the rect.
  1690. rx: The horizontal corner radius of the rect. Defaults to ry if it is specified.
  1691. ry: The vertical corner radius of the rect. Defaults to rx if it is specified.
  1692. path_length: The total length of the rectangle's perimeter, in user units.
  1693. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  1694. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  1695. content_editable: Indicates whether the element's content is editable.
  1696. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  1697. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  1698. draggable: Defines whether the element can be dragged.
  1699. enter_key_hint: Hints what media types the media element is able to play.
  1700. hidden: Defines whether the element is hidden.
  1701. input_mode: Defines the type of the element.
  1702. item_prop: Defines the name of the element for metadata purposes.
  1703. lang: Defines the language used in the element.
  1704. role: Defines the role of the element.
  1705. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  1706. spell_check: Defines whether the element may be checked for spelling errors.
  1707. tab_index: Defines the position of the current element in the tabbing order.
  1708. title: Defines a tooltip for the element.
  1709. style: The style of the component.
  1710. key: A unique key for the component.
  1711. id: The id for the component.
  1712. class_name: The class name for the component.
  1713. autofocus: Whether the component should take the focus once the page is loaded
  1714. custom_attrs: custom attribute
  1715. **props: The props of the component.
  1716. Returns:
  1717. The component.
  1718. """
  1719. ...
  1720. class Polygon(BaseHTML):
  1721. @overload
  1722. @classmethod
  1723. def create( # type: ignore
  1724. cls,
  1725. *children,
  1726. points: Optional[Union[Var[str], str]] = None,
  1727. path_length: Optional[Union[Var[int], int]] = None,
  1728. access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1729. auto_capitalize: Optional[
  1730. Union[Var[Union[bool, int, str]], bool, int, str]
  1731. ] = None,
  1732. content_editable: Optional[
  1733. Union[Var[Union[bool, int, str]], bool, int, str]
  1734. ] = None,
  1735. context_menu: Optional[
  1736. Union[Var[Union[bool, int, str]], bool, int, str]
  1737. ] = None,
  1738. dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1739. draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1740. enter_key_hint: Optional[
  1741. Union[Var[Union[bool, int, str]], bool, int, str]
  1742. ] = None,
  1743. hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1744. input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1745. item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1746. lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1747. role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1748. slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1749. spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1750. tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1751. title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1752. style: Optional[Style] = None,
  1753. key: Optional[Any] = None,
  1754. id: Optional[Any] = None,
  1755. class_name: Optional[Any] = None,
  1756. autofocus: Optional[bool] = None,
  1757. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  1758. on_blur: Optional[EventType[[], BASE_STATE]] = None,
  1759. on_click: Optional[EventType[[], BASE_STATE]] = None,
  1760. on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
  1761. on_double_click: Optional[EventType[[], BASE_STATE]] = None,
  1762. on_focus: Optional[EventType[[], BASE_STATE]] = None,
  1763. on_mount: Optional[EventType[[], BASE_STATE]] = None,
  1764. on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
  1765. on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
  1766. on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
  1767. on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
  1768. on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
  1769. on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
  1770. on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
  1771. on_scroll: Optional[EventType[[], BASE_STATE]] = None,
  1772. on_unmount: Optional[EventType[[], BASE_STATE]] = None,
  1773. **props,
  1774. ) -> "Polygon":
  1775. """Create the component.
  1776. Args:
  1777. *children: The children of the component.
  1778. points: defines the list of points (pairs of x,y absolute coordinates) required to draw the polygon.
  1779. path_length: This prop lets specify the total length for the path, in user units.
  1780. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  1781. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  1782. content_editable: Indicates whether the element's content is editable.
  1783. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  1784. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  1785. draggable: Defines whether the element can be dragged.
  1786. enter_key_hint: Hints what media types the media element is able to play.
  1787. hidden: Defines whether the element is hidden.
  1788. input_mode: Defines the type of the element.
  1789. item_prop: Defines the name of the element for metadata purposes.
  1790. lang: Defines the language used in the element.
  1791. role: Defines the role of the element.
  1792. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  1793. spell_check: Defines whether the element may be checked for spelling errors.
  1794. tab_index: Defines the position of the current element in the tabbing order.
  1795. title: Defines a tooltip for the element.
  1796. style: The style of the component.
  1797. key: A unique key for the component.
  1798. id: The id for the component.
  1799. class_name: The class name for the component.
  1800. autofocus: Whether the component should take the focus once the page is loaded
  1801. custom_attrs: custom attribute
  1802. **props: The props of the component.
  1803. Returns:
  1804. The component.
  1805. """
  1806. ...
  1807. class Defs(BaseHTML):
  1808. @overload
  1809. @classmethod
  1810. def create( # type: ignore
  1811. cls,
  1812. *children,
  1813. access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1814. auto_capitalize: Optional[
  1815. Union[Var[Union[bool, int, str]], bool, int, str]
  1816. ] = None,
  1817. content_editable: Optional[
  1818. Union[Var[Union[bool, int, str]], bool, int, str]
  1819. ] = None,
  1820. context_menu: Optional[
  1821. Union[Var[Union[bool, int, str]], bool, int, str]
  1822. ] = None,
  1823. dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1824. draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1825. enter_key_hint: Optional[
  1826. Union[Var[Union[bool, int, str]], bool, int, str]
  1827. ] = None,
  1828. hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1829. input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1830. item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1831. lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1832. role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1833. slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1834. spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1835. tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1836. title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1837. style: Optional[Style] = None,
  1838. key: Optional[Any] = None,
  1839. id: Optional[Any] = None,
  1840. class_name: Optional[Any] = None,
  1841. autofocus: Optional[bool] = None,
  1842. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  1843. on_blur: Optional[EventType[[], BASE_STATE]] = None,
  1844. on_click: Optional[EventType[[], BASE_STATE]] = None,
  1845. on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
  1846. on_double_click: Optional[EventType[[], BASE_STATE]] = None,
  1847. on_focus: Optional[EventType[[], BASE_STATE]] = None,
  1848. on_mount: Optional[EventType[[], BASE_STATE]] = None,
  1849. on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
  1850. on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
  1851. on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
  1852. on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
  1853. on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
  1854. on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
  1855. on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
  1856. on_scroll: Optional[EventType[[], BASE_STATE]] = None,
  1857. on_unmount: Optional[EventType[[], BASE_STATE]] = None,
  1858. **props,
  1859. ) -> "Defs":
  1860. """Create the component.
  1861. Args:
  1862. *children: The children of the component.
  1863. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  1864. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  1865. content_editable: Indicates whether the element's content is editable.
  1866. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  1867. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  1868. draggable: Defines whether the element can be dragged.
  1869. enter_key_hint: Hints what media types the media element is able to play.
  1870. hidden: Defines whether the element is hidden.
  1871. input_mode: Defines the type of the element.
  1872. item_prop: Defines the name of the element for metadata purposes.
  1873. lang: Defines the language used in the element.
  1874. role: Defines the role of the element.
  1875. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  1876. spell_check: Defines whether the element may be checked for spelling errors.
  1877. tab_index: Defines the position of the current element in the tabbing order.
  1878. title: Defines a tooltip for the element.
  1879. style: The style of the component.
  1880. key: A unique key for the component.
  1881. id: The id for the component.
  1882. class_name: The class name for the component.
  1883. autofocus: Whether the component should take the focus once the page is loaded
  1884. custom_attrs: custom attribute
  1885. **props: The props of the component.
  1886. Returns:
  1887. The component.
  1888. """
  1889. ...
  1890. class LinearGradient(BaseHTML):
  1891. @overload
  1892. @classmethod
  1893. def create( # type: ignore
  1894. cls,
  1895. *children,
  1896. gradient_units: Optional[Union[Var[Union[bool, str]], bool, str]] = None,
  1897. gradient_transform: Optional[Union[Var[Union[bool, str]], bool, str]] = None,
  1898. spread_method: Optional[Union[Var[Union[bool, str]], bool, str]] = None,
  1899. x1: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1900. x2: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1901. y1: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1902. y2: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1903. access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1904. auto_capitalize: Optional[
  1905. Union[Var[Union[bool, int, str]], bool, int, str]
  1906. ] = None,
  1907. content_editable: Optional[
  1908. Union[Var[Union[bool, int, str]], bool, int, str]
  1909. ] = None,
  1910. context_menu: Optional[
  1911. Union[Var[Union[bool, int, str]], bool, int, str]
  1912. ] = None,
  1913. dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1914. draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1915. enter_key_hint: Optional[
  1916. Union[Var[Union[bool, int, str]], bool, int, str]
  1917. ] = None,
  1918. hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1919. input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1920. item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1921. lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1922. role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1923. slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1924. spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1925. tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1926. title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1927. style: Optional[Style] = None,
  1928. key: Optional[Any] = None,
  1929. id: Optional[Any] = None,
  1930. class_name: Optional[Any] = None,
  1931. autofocus: Optional[bool] = None,
  1932. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  1933. on_blur: Optional[EventType[[], BASE_STATE]] = None,
  1934. on_click: Optional[EventType[[], BASE_STATE]] = None,
  1935. on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
  1936. on_double_click: Optional[EventType[[], BASE_STATE]] = None,
  1937. on_focus: Optional[EventType[[], BASE_STATE]] = None,
  1938. on_mount: Optional[EventType[[], BASE_STATE]] = None,
  1939. on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
  1940. on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
  1941. on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
  1942. on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
  1943. on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
  1944. on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
  1945. on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
  1946. on_scroll: Optional[EventType[[], BASE_STATE]] = None,
  1947. on_unmount: Optional[EventType[[], BASE_STATE]] = None,
  1948. **props,
  1949. ) -> "LinearGradient":
  1950. """Create the component.
  1951. Args:
  1952. *children: The children of the component.
  1953. gradient_units: Units for the gradient.
  1954. gradient_transform: Transform applied to the gradient.
  1955. spread_method: Method used to spread the gradient.
  1956. x1: X coordinate of the starting point of the gradient.
  1957. x2: X coordinate of the ending point of the gradient.
  1958. y1: Y coordinate of the starting point of the gradient.
  1959. y2: Y coordinate of the ending point of the gradient.
  1960. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  1961. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  1962. content_editable: Indicates whether the element's content is editable.
  1963. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  1964. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  1965. draggable: Defines whether the element can be dragged.
  1966. enter_key_hint: Hints what media types the media element is able to play.
  1967. hidden: Defines whether the element is hidden.
  1968. input_mode: Defines the type of the element.
  1969. item_prop: Defines the name of the element for metadata purposes.
  1970. lang: Defines the language used in the element.
  1971. role: Defines the role of the element.
  1972. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  1973. spell_check: Defines whether the element may be checked for spelling errors.
  1974. tab_index: Defines the position of the current element in the tabbing order.
  1975. title: Defines a tooltip for the element.
  1976. style: The style of the component.
  1977. key: A unique key for the component.
  1978. id: The id for the component.
  1979. class_name: The class name for the component.
  1980. autofocus: Whether the component should take the focus once the page is loaded
  1981. custom_attrs: custom attribute
  1982. **props: The props of the component.
  1983. Returns:
  1984. The component.
  1985. """
  1986. ...
  1987. class RadialGradient(BaseHTML):
  1988. @overload
  1989. @classmethod
  1990. def create( # type: ignore
  1991. cls,
  1992. *children,
  1993. cx: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1994. cy: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1995. fr: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1996. fx: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1997. fy: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1998. gradient_units: Optional[Union[Var[Union[bool, str]], bool, str]] = None,
  1999. gradient_transform: Optional[Union[Var[Union[bool, str]], bool, str]] = None,
  2000. r: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2001. spread_method: Optional[Union[Var[Union[bool, str]], bool, str]] = None,
  2002. access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2003. auto_capitalize: Optional[
  2004. Union[Var[Union[bool, int, str]], bool, int, str]
  2005. ] = None,
  2006. content_editable: Optional[
  2007. Union[Var[Union[bool, int, str]], bool, int, str]
  2008. ] = None,
  2009. context_menu: Optional[
  2010. Union[Var[Union[bool, int, str]], bool, int, str]
  2011. ] = None,
  2012. dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2013. draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2014. enter_key_hint: Optional[
  2015. Union[Var[Union[bool, int, str]], bool, int, str]
  2016. ] = None,
  2017. hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2018. input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2019. item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2020. lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2021. role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2022. slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2023. spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2024. tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2025. title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2026. style: Optional[Style] = None,
  2027. key: Optional[Any] = None,
  2028. id: Optional[Any] = None,
  2029. class_name: Optional[Any] = None,
  2030. autofocus: Optional[bool] = None,
  2031. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  2032. on_blur: Optional[EventType[[], BASE_STATE]] = None,
  2033. on_click: Optional[EventType[[], BASE_STATE]] = None,
  2034. on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
  2035. on_double_click: Optional[EventType[[], BASE_STATE]] = None,
  2036. on_focus: Optional[EventType[[], BASE_STATE]] = None,
  2037. on_mount: Optional[EventType[[], BASE_STATE]] = None,
  2038. on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
  2039. on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
  2040. on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
  2041. on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
  2042. on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
  2043. on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
  2044. on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
  2045. on_scroll: Optional[EventType[[], BASE_STATE]] = None,
  2046. on_unmount: Optional[EventType[[], BASE_STATE]] = None,
  2047. **props,
  2048. ) -> "RadialGradient":
  2049. """Create the component.
  2050. Args:
  2051. *children: The children of the component.
  2052. cx: The x coordinate of the end circle of the radial gradient.
  2053. cy: The y coordinate of the end circle of the radial gradient.
  2054. fr: The radius of the start circle of the radial gradient.
  2055. fx: The x coordinate of the start circle of the radial gradient.
  2056. fy: The y coordinate of the start circle of the radial gradient.
  2057. gradient_units: Units for the gradient.
  2058. gradient_transform: Transform applied to the gradient.
  2059. r: The radius of the end circle of the radial gradient.
  2060. spread_method: Method used to spread the gradient.
  2061. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  2062. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  2063. content_editable: Indicates whether the element's content is editable.
  2064. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  2065. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  2066. draggable: Defines whether the element can be dragged.
  2067. enter_key_hint: Hints what media types the media element is able to play.
  2068. hidden: Defines whether the element is hidden.
  2069. input_mode: Defines the type of the element.
  2070. item_prop: Defines the name of the element for metadata purposes.
  2071. lang: Defines the language used in the element.
  2072. role: Defines the role of the element.
  2073. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  2074. spell_check: Defines whether the element may be checked for spelling errors.
  2075. tab_index: Defines the position of the current element in the tabbing order.
  2076. title: Defines a tooltip for the element.
  2077. style: The style of the component.
  2078. key: A unique key for the component.
  2079. id: The id for the component.
  2080. class_name: The class name for the component.
  2081. autofocus: Whether the component should take the focus once the page is loaded
  2082. custom_attrs: custom attribute
  2083. **props: The props of the component.
  2084. Returns:
  2085. The component.
  2086. """
  2087. ...
  2088. class Stop(BaseHTML):
  2089. @overload
  2090. @classmethod
  2091. def create( # type: ignore
  2092. cls,
  2093. *children,
  2094. offset: Optional[Union[Var[Union[float, int, str]], float, int, str]] = None,
  2095. stop_color: Optional[
  2096. Union[Color, Var[Union[Color, bool, str]], bool, str]
  2097. ] = None,
  2098. stop_opacity: Optional[
  2099. Union[Var[Union[bool, float, int, str]], bool, float, int, str]
  2100. ] = None,
  2101. access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2102. auto_capitalize: Optional[
  2103. Union[Var[Union[bool, int, str]], bool, int, str]
  2104. ] = None,
  2105. content_editable: Optional[
  2106. Union[Var[Union[bool, int, str]], bool, int, str]
  2107. ] = None,
  2108. context_menu: Optional[
  2109. Union[Var[Union[bool, int, str]], bool, int, str]
  2110. ] = None,
  2111. dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2112. draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2113. enter_key_hint: Optional[
  2114. Union[Var[Union[bool, int, str]], bool, int, str]
  2115. ] = None,
  2116. hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2117. input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2118. item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2119. lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2120. role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2121. slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2122. spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2123. tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2124. title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2125. style: Optional[Style] = None,
  2126. key: Optional[Any] = None,
  2127. id: Optional[Any] = None,
  2128. class_name: Optional[Any] = None,
  2129. autofocus: Optional[bool] = None,
  2130. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  2131. on_blur: Optional[EventType[[], BASE_STATE]] = None,
  2132. on_click: Optional[EventType[[], BASE_STATE]] = None,
  2133. on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
  2134. on_double_click: Optional[EventType[[], BASE_STATE]] = None,
  2135. on_focus: Optional[EventType[[], BASE_STATE]] = None,
  2136. on_mount: Optional[EventType[[], BASE_STATE]] = None,
  2137. on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
  2138. on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
  2139. on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
  2140. on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
  2141. on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
  2142. on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
  2143. on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
  2144. on_scroll: Optional[EventType[[], BASE_STATE]] = None,
  2145. on_unmount: Optional[EventType[[], BASE_STATE]] = None,
  2146. **props,
  2147. ) -> "Stop":
  2148. """Create the component.
  2149. Args:
  2150. *children: The children of the component.
  2151. offset: Offset of the gradient stop.
  2152. stop_color: Color of the gradient stop.
  2153. stop_opacity: Opacity of the gradient stop.
  2154. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  2155. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  2156. content_editable: Indicates whether the element's content is editable.
  2157. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  2158. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  2159. draggable: Defines whether the element can be dragged.
  2160. enter_key_hint: Hints what media types the media element is able to play.
  2161. hidden: Defines whether the element is hidden.
  2162. input_mode: Defines the type of the element.
  2163. item_prop: Defines the name of the element for metadata purposes.
  2164. lang: Defines the language used in the element.
  2165. role: Defines the role of the element.
  2166. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  2167. spell_check: Defines whether the element may be checked for spelling errors.
  2168. tab_index: Defines the position of the current element in the tabbing order.
  2169. title: Defines a tooltip for the element.
  2170. style: The style of the component.
  2171. key: A unique key for the component.
  2172. id: The id for the component.
  2173. class_name: The class name for the component.
  2174. autofocus: Whether the component should take the focus once the page is loaded
  2175. custom_attrs: custom attribute
  2176. **props: The props of the component.
  2177. Returns:
  2178. The component.
  2179. """
  2180. ...
  2181. class Path(BaseHTML):
  2182. @overload
  2183. @classmethod
  2184. def create( # type: ignore
  2185. cls,
  2186. *children,
  2187. d: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2188. access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2189. auto_capitalize: Optional[
  2190. Union[Var[Union[bool, int, str]], bool, int, str]
  2191. ] = None,
  2192. content_editable: Optional[
  2193. Union[Var[Union[bool, int, str]], bool, int, str]
  2194. ] = None,
  2195. context_menu: Optional[
  2196. Union[Var[Union[bool, int, str]], bool, int, str]
  2197. ] = None,
  2198. dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2199. draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2200. enter_key_hint: Optional[
  2201. Union[Var[Union[bool, int, str]], bool, int, str]
  2202. ] = None,
  2203. hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2204. input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2205. item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2206. lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2207. role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2208. slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2209. spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2210. tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2211. title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2212. style: Optional[Style] = None,
  2213. key: Optional[Any] = None,
  2214. id: Optional[Any] = None,
  2215. class_name: Optional[Any] = None,
  2216. autofocus: Optional[bool] = None,
  2217. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  2218. on_blur: Optional[EventType[[], BASE_STATE]] = None,
  2219. on_click: Optional[EventType[[], BASE_STATE]] = None,
  2220. on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
  2221. on_double_click: Optional[EventType[[], BASE_STATE]] = None,
  2222. on_focus: Optional[EventType[[], BASE_STATE]] = None,
  2223. on_mount: Optional[EventType[[], BASE_STATE]] = None,
  2224. on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
  2225. on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
  2226. on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
  2227. on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
  2228. on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
  2229. on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
  2230. on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
  2231. on_scroll: Optional[EventType[[], BASE_STATE]] = None,
  2232. on_unmount: Optional[EventType[[], BASE_STATE]] = None,
  2233. **props,
  2234. ) -> "Path":
  2235. """Create the component.
  2236. Args:
  2237. *children: The children of the component.
  2238. d: Defines the shape of the path.
  2239. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  2240. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  2241. content_editable: Indicates whether the element's content is editable.
  2242. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  2243. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  2244. draggable: Defines whether the element can be dragged.
  2245. enter_key_hint: Hints what media types the media element is able to play.
  2246. hidden: Defines whether the element is hidden.
  2247. input_mode: Defines the type of the element.
  2248. item_prop: Defines the name of the element for metadata purposes.
  2249. lang: Defines the language used in the element.
  2250. role: Defines the role of the element.
  2251. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  2252. spell_check: Defines whether the element may be checked for spelling errors.
  2253. tab_index: Defines the position of the current element in the tabbing order.
  2254. title: Defines a tooltip for the element.
  2255. style: The style of the component.
  2256. key: A unique key for the component.
  2257. id: The id for the component.
  2258. class_name: The class name for the component.
  2259. autofocus: Whether the component should take the focus once the page is loaded
  2260. custom_attrs: custom attribute
  2261. **props: The props of the component.
  2262. Returns:
  2263. The component.
  2264. """
  2265. ...
  2266. class SVG(ComponentNamespace):
  2267. text = staticmethod(Text.create)
  2268. line = staticmethod(Line.create)
  2269. circle = staticmethod(Circle.create)
  2270. ellipse = staticmethod(Ellipse.create)
  2271. rect = staticmethod(Rect.create)
  2272. polygon = staticmethod(Polygon.create)
  2273. path = staticmethod(Path.create)
  2274. stop = staticmethod(Stop.create)
  2275. linear_gradient = staticmethod(LinearGradient.create)
  2276. radial_gradient = staticmethod(RadialGradient.create)
  2277. defs = staticmethod(Defs.create)
  2278. @staticmethod
  2279. def __call__(
  2280. *children,
  2281. width: Optional[Union[Var[Union[int, str]], int, str]] = None,
  2282. height: Optional[Union[Var[Union[int, str]], int, str]] = None,
  2283. xmlns: Optional[Union[Var[str], str]] = None,
  2284. access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2285. auto_capitalize: Optional[
  2286. Union[Var[Union[bool, int, str]], bool, int, str]
  2287. ] = None,
  2288. content_editable: Optional[
  2289. Union[Var[Union[bool, int, str]], bool, int, str]
  2290. ] = None,
  2291. context_menu: Optional[
  2292. Union[Var[Union[bool, int, str]], bool, int, str]
  2293. ] = None,
  2294. dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2295. draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2296. enter_key_hint: Optional[
  2297. Union[Var[Union[bool, int, str]], bool, int, str]
  2298. ] = None,
  2299. hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2300. input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2301. item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2302. lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2303. role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2304. slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2305. spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2306. tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2307. title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  2308. style: Optional[Style] = None,
  2309. key: Optional[Any] = None,
  2310. id: Optional[Any] = None,
  2311. class_name: Optional[Any] = None,
  2312. autofocus: Optional[bool] = None,
  2313. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  2314. on_blur: Optional[EventType[[], BASE_STATE]] = None,
  2315. on_click: Optional[EventType[[], BASE_STATE]] = None,
  2316. on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
  2317. on_double_click: Optional[EventType[[], BASE_STATE]] = None,
  2318. on_focus: Optional[EventType[[], BASE_STATE]] = None,
  2319. on_mount: Optional[EventType[[], BASE_STATE]] = None,
  2320. on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
  2321. on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
  2322. on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
  2323. on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
  2324. on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
  2325. on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
  2326. on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
  2327. on_scroll: Optional[EventType[[], BASE_STATE]] = None,
  2328. on_unmount: Optional[EventType[[], BASE_STATE]] = None,
  2329. **props,
  2330. ) -> "Svg":
  2331. """Create the component.
  2332. Args:
  2333. *children: The children of the component.
  2334. width: The width of the svg.
  2335. height: The height of the svg.
  2336. xmlns: The XML namespace declaration.
  2337. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  2338. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  2339. content_editable: Indicates whether the element's content is editable.
  2340. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  2341. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  2342. draggable: Defines whether the element can be dragged.
  2343. enter_key_hint: Hints what media types the media element is able to play.
  2344. hidden: Defines whether the element is hidden.
  2345. input_mode: Defines the type of the element.
  2346. item_prop: Defines the name of the element for metadata purposes.
  2347. lang: Defines the language used in the element.
  2348. role: Defines the role of the element.
  2349. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  2350. spell_check: Defines whether the element may be checked for spelling errors.
  2351. tab_index: Defines the position of the current element in the tabbing order.
  2352. title: Defines a tooltip for the element.
  2353. style: The style of the component.
  2354. key: A unique key for the component.
  2355. id: The id for the component.
  2356. class_name: The class name for the component.
  2357. autofocus: Whether the component should take the focus once the page is loaded
  2358. custom_attrs: custom attribute
  2359. **props: The props of the component.
  2360. Returns:
  2361. The component.
  2362. """
  2363. ...
  2364. area = Area.create
  2365. audio = Audio.create
  2366. image = img = Img.create
  2367. map = Map.create
  2368. track = Track.create
  2369. video = Video.create
  2370. embed = Embed.create
  2371. iframe = Iframe.create
  2372. object = Object.create
  2373. picture = Picture.create
  2374. portal = Portal.create
  2375. source = Source.create
  2376. svg = SVG()