scripts.pyi 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778
  1. """Stub file for reflex/components/el/elements/scripts.py"""
  2. # ------------------- DO NOT EDIT ----------------------
  3. # This file was generated by `reflex/utils/pyi_generator.py`!
  4. # ------------------------------------------------------
  5. from typing import Any, Literal, Optional, overload
  6. from reflex.event import EventType
  7. from reflex.style import Style
  8. from reflex.vars.base import Var
  9. from .base import BaseHTML
  10. class Canvas(BaseHTML):
  11. @overload
  12. @classmethod
  13. def create( # type: ignore
  14. cls,
  15. *children,
  16. access_key: Var[str] | str | None = None,
  17. auto_capitalize: Literal[
  18. "characters", "none", "off", "on", "sentences", "words"
  19. ]
  20. | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
  21. | None = None,
  22. content_editable: Literal["inherit", "plaintext-only", False, True]
  23. | Var[Literal["inherit", "plaintext-only", False, True]]
  24. | None = None,
  25. context_menu: Var[str] | str | None = None,
  26. dir: Var[str] | str | None = None,
  27. draggable: Var[bool] | bool | None = None,
  28. enter_key_hint: Literal[
  29. "done", "enter", "go", "next", "previous", "search", "send"
  30. ]
  31. | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
  32. | None = None,
  33. hidden: Var[bool] | bool | None = None,
  34. input_mode: Literal[
  35. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  36. ]
  37. | Var[
  38. Literal[
  39. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  40. ]
  41. ]
  42. | None = None,
  43. item_prop: Var[str] | str | None = None,
  44. lang: Var[str] | str | None = None,
  45. role: Literal[
  46. "alert",
  47. "alertdialog",
  48. "application",
  49. "article",
  50. "banner",
  51. "button",
  52. "cell",
  53. "checkbox",
  54. "columnheader",
  55. "combobox",
  56. "complementary",
  57. "contentinfo",
  58. "definition",
  59. "dialog",
  60. "directory",
  61. "document",
  62. "feed",
  63. "figure",
  64. "form",
  65. "grid",
  66. "gridcell",
  67. "group",
  68. "heading",
  69. "img",
  70. "link",
  71. "list",
  72. "listbox",
  73. "listitem",
  74. "log",
  75. "main",
  76. "marquee",
  77. "math",
  78. "menu",
  79. "menubar",
  80. "menuitem",
  81. "menuitemcheckbox",
  82. "menuitemradio",
  83. "navigation",
  84. "none",
  85. "note",
  86. "option",
  87. "presentation",
  88. "progressbar",
  89. "radio",
  90. "radiogroup",
  91. "region",
  92. "row",
  93. "rowgroup",
  94. "rowheader",
  95. "scrollbar",
  96. "search",
  97. "searchbox",
  98. "separator",
  99. "slider",
  100. "spinbutton",
  101. "status",
  102. "switch",
  103. "tab",
  104. "table",
  105. "tablist",
  106. "tabpanel",
  107. "term",
  108. "textbox",
  109. "timer",
  110. "toolbar",
  111. "tooltip",
  112. "tree",
  113. "treegrid",
  114. "treeitem",
  115. ]
  116. | Var[
  117. Literal[
  118. "alert",
  119. "alertdialog",
  120. "application",
  121. "article",
  122. "banner",
  123. "button",
  124. "cell",
  125. "checkbox",
  126. "columnheader",
  127. "combobox",
  128. "complementary",
  129. "contentinfo",
  130. "definition",
  131. "dialog",
  132. "directory",
  133. "document",
  134. "feed",
  135. "figure",
  136. "form",
  137. "grid",
  138. "gridcell",
  139. "group",
  140. "heading",
  141. "img",
  142. "link",
  143. "list",
  144. "listbox",
  145. "listitem",
  146. "log",
  147. "main",
  148. "marquee",
  149. "math",
  150. "menu",
  151. "menubar",
  152. "menuitem",
  153. "menuitemcheckbox",
  154. "menuitemradio",
  155. "navigation",
  156. "none",
  157. "note",
  158. "option",
  159. "presentation",
  160. "progressbar",
  161. "radio",
  162. "radiogroup",
  163. "region",
  164. "row",
  165. "rowgroup",
  166. "rowheader",
  167. "scrollbar",
  168. "search",
  169. "searchbox",
  170. "separator",
  171. "slider",
  172. "spinbutton",
  173. "status",
  174. "switch",
  175. "tab",
  176. "table",
  177. "tablist",
  178. "tabpanel",
  179. "term",
  180. "textbox",
  181. "timer",
  182. "toolbar",
  183. "tooltip",
  184. "tree",
  185. "treegrid",
  186. "treeitem",
  187. ]
  188. ]
  189. | None = None,
  190. slot: Var[str] | str | None = None,
  191. spell_check: Var[bool] | bool | None = None,
  192. tab_index: Var[int] | int | None = None,
  193. title: Var[str] | str | None = None,
  194. style: Style | None = None,
  195. key: Any | None = None,
  196. id: Any | None = None,
  197. class_name: Any | None = None,
  198. autofocus: bool | None = None,
  199. custom_attrs: dict[str, Var | Any] | None = None,
  200. on_blur: Optional[EventType[()]] = None,
  201. on_click: Optional[EventType[()]] = None,
  202. on_context_menu: Optional[EventType[()]] = None,
  203. on_double_click: Optional[EventType[()]] = None,
  204. on_focus: Optional[EventType[()]] = None,
  205. on_mount: Optional[EventType[()]] = None,
  206. on_mouse_down: Optional[EventType[()]] = None,
  207. on_mouse_enter: Optional[EventType[()]] = None,
  208. on_mouse_leave: Optional[EventType[()]] = None,
  209. on_mouse_move: Optional[EventType[()]] = None,
  210. on_mouse_out: Optional[EventType[()]] = None,
  211. on_mouse_over: Optional[EventType[()]] = None,
  212. on_mouse_up: Optional[EventType[()]] = None,
  213. on_scroll: Optional[EventType[()]] = None,
  214. on_unmount: Optional[EventType[()]] = None,
  215. **props,
  216. ) -> "Canvas":
  217. """Create the component.
  218. Args:
  219. *children: The children of the component.
  220. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  221. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  222. content_editable: Indicates whether the element's content is editable.
  223. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  224. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  225. draggable: Defines whether the element can be dragged.
  226. enter_key_hint: Hints what media types the media element is able to play.
  227. hidden: Defines whether the element is hidden.
  228. input_mode: Defines the type of the element.
  229. item_prop: Defines the name of the element for metadata purposes.
  230. lang: Defines the language used in the element.
  231. role: Defines the role of the element.
  232. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  233. spell_check: Defines whether the element may be checked for spelling errors.
  234. tab_index: Defines the position of the current element in the tabbing order.
  235. title: Defines a tooltip for the element.
  236. style: The style of the component.
  237. key: A unique key for the component.
  238. id: The id for the component.
  239. class_name: The class name for the component.
  240. autofocus: Whether the component should take the focus once the page is loaded
  241. custom_attrs: custom attribute
  242. **props: The props of the component.
  243. Returns:
  244. The component.
  245. """
  246. ...
  247. class Noscript(BaseHTML):
  248. @overload
  249. @classmethod
  250. def create( # type: ignore
  251. cls,
  252. *children,
  253. access_key: Var[str] | str | None = None,
  254. auto_capitalize: Literal[
  255. "characters", "none", "off", "on", "sentences", "words"
  256. ]
  257. | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
  258. | None = None,
  259. content_editable: Literal["inherit", "plaintext-only", False, True]
  260. | Var[Literal["inherit", "plaintext-only", False, True]]
  261. | None = None,
  262. context_menu: Var[str] | str | None = None,
  263. dir: Var[str] | str | None = None,
  264. draggable: Var[bool] | bool | None = None,
  265. enter_key_hint: Literal[
  266. "done", "enter", "go", "next", "previous", "search", "send"
  267. ]
  268. | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
  269. | None = None,
  270. hidden: Var[bool] | bool | None = None,
  271. input_mode: Literal[
  272. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  273. ]
  274. | Var[
  275. Literal[
  276. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  277. ]
  278. ]
  279. | None = None,
  280. item_prop: Var[str] | str | None = None,
  281. lang: Var[str] | str | None = None,
  282. role: Literal[
  283. "alert",
  284. "alertdialog",
  285. "application",
  286. "article",
  287. "banner",
  288. "button",
  289. "cell",
  290. "checkbox",
  291. "columnheader",
  292. "combobox",
  293. "complementary",
  294. "contentinfo",
  295. "definition",
  296. "dialog",
  297. "directory",
  298. "document",
  299. "feed",
  300. "figure",
  301. "form",
  302. "grid",
  303. "gridcell",
  304. "group",
  305. "heading",
  306. "img",
  307. "link",
  308. "list",
  309. "listbox",
  310. "listitem",
  311. "log",
  312. "main",
  313. "marquee",
  314. "math",
  315. "menu",
  316. "menubar",
  317. "menuitem",
  318. "menuitemcheckbox",
  319. "menuitemradio",
  320. "navigation",
  321. "none",
  322. "note",
  323. "option",
  324. "presentation",
  325. "progressbar",
  326. "radio",
  327. "radiogroup",
  328. "region",
  329. "row",
  330. "rowgroup",
  331. "rowheader",
  332. "scrollbar",
  333. "search",
  334. "searchbox",
  335. "separator",
  336. "slider",
  337. "spinbutton",
  338. "status",
  339. "switch",
  340. "tab",
  341. "table",
  342. "tablist",
  343. "tabpanel",
  344. "term",
  345. "textbox",
  346. "timer",
  347. "toolbar",
  348. "tooltip",
  349. "tree",
  350. "treegrid",
  351. "treeitem",
  352. ]
  353. | Var[
  354. Literal[
  355. "alert",
  356. "alertdialog",
  357. "application",
  358. "article",
  359. "banner",
  360. "button",
  361. "cell",
  362. "checkbox",
  363. "columnheader",
  364. "combobox",
  365. "complementary",
  366. "contentinfo",
  367. "definition",
  368. "dialog",
  369. "directory",
  370. "document",
  371. "feed",
  372. "figure",
  373. "form",
  374. "grid",
  375. "gridcell",
  376. "group",
  377. "heading",
  378. "img",
  379. "link",
  380. "list",
  381. "listbox",
  382. "listitem",
  383. "log",
  384. "main",
  385. "marquee",
  386. "math",
  387. "menu",
  388. "menubar",
  389. "menuitem",
  390. "menuitemcheckbox",
  391. "menuitemradio",
  392. "navigation",
  393. "none",
  394. "note",
  395. "option",
  396. "presentation",
  397. "progressbar",
  398. "radio",
  399. "radiogroup",
  400. "region",
  401. "row",
  402. "rowgroup",
  403. "rowheader",
  404. "scrollbar",
  405. "search",
  406. "searchbox",
  407. "separator",
  408. "slider",
  409. "spinbutton",
  410. "status",
  411. "switch",
  412. "tab",
  413. "table",
  414. "tablist",
  415. "tabpanel",
  416. "term",
  417. "textbox",
  418. "timer",
  419. "toolbar",
  420. "tooltip",
  421. "tree",
  422. "treegrid",
  423. "treeitem",
  424. ]
  425. ]
  426. | None = None,
  427. slot: Var[str] | str | None = None,
  428. spell_check: Var[bool] | bool | None = None,
  429. tab_index: Var[int] | int | None = None,
  430. title: Var[str] | str | None = None,
  431. style: Style | None = None,
  432. key: Any | None = None,
  433. id: Any | None = None,
  434. class_name: Any | None = None,
  435. autofocus: bool | None = None,
  436. custom_attrs: dict[str, Var | Any] | None = None,
  437. on_blur: Optional[EventType[()]] = None,
  438. on_click: Optional[EventType[()]] = None,
  439. on_context_menu: Optional[EventType[()]] = None,
  440. on_double_click: Optional[EventType[()]] = None,
  441. on_focus: Optional[EventType[()]] = None,
  442. on_mount: Optional[EventType[()]] = None,
  443. on_mouse_down: Optional[EventType[()]] = None,
  444. on_mouse_enter: Optional[EventType[()]] = None,
  445. on_mouse_leave: Optional[EventType[()]] = None,
  446. on_mouse_move: Optional[EventType[()]] = None,
  447. on_mouse_out: Optional[EventType[()]] = None,
  448. on_mouse_over: Optional[EventType[()]] = None,
  449. on_mouse_up: Optional[EventType[()]] = None,
  450. on_scroll: Optional[EventType[()]] = None,
  451. on_unmount: Optional[EventType[()]] = None,
  452. **props,
  453. ) -> "Noscript":
  454. """Create the component.
  455. Args:
  456. *children: The children of the component.
  457. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  458. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  459. content_editable: Indicates whether the element's content is editable.
  460. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  461. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  462. draggable: Defines whether the element can be dragged.
  463. enter_key_hint: Hints what media types the media element is able to play.
  464. hidden: Defines whether the element is hidden.
  465. input_mode: Defines the type of the element.
  466. item_prop: Defines the name of the element for metadata purposes.
  467. lang: Defines the language used in the element.
  468. role: Defines the role of the element.
  469. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  470. spell_check: Defines whether the element may be checked for spelling errors.
  471. tab_index: Defines the position of the current element in the tabbing order.
  472. title: Defines a tooltip for the element.
  473. style: The style of the component.
  474. key: A unique key for the component.
  475. id: The id for the component.
  476. class_name: The class name for the component.
  477. autofocus: Whether the component should take the focus once the page is loaded
  478. custom_attrs: custom attribute
  479. **props: The props of the component.
  480. Returns:
  481. The component.
  482. """
  483. ...
  484. class Script(BaseHTML):
  485. @overload
  486. @classmethod
  487. def create( # type: ignore
  488. cls,
  489. *children,
  490. async_: Var[bool] | bool | None = None,
  491. char_set: Var[str] | str | None = None,
  492. cross_origin: Literal["", "anonymous", "use-credentials"]
  493. | Var[Literal["", "anonymous", "use-credentials"]]
  494. | None = None,
  495. defer: Var[bool] | bool | None = None,
  496. integrity: Var[str] | str | None = None,
  497. referrer_policy: Literal[
  498. "",
  499. "no-referrer",
  500. "no-referrer-when-downgrade",
  501. "origin",
  502. "origin-when-cross-origin",
  503. "same-origin",
  504. "strict-origin",
  505. "strict-origin-when-cross-origin",
  506. "unsafe-url",
  507. ]
  508. | Var[
  509. Literal[
  510. "",
  511. "no-referrer",
  512. "no-referrer-when-downgrade",
  513. "origin",
  514. "origin-when-cross-origin",
  515. "same-origin",
  516. "strict-origin",
  517. "strict-origin-when-cross-origin",
  518. "unsafe-url",
  519. ]
  520. ]
  521. | None = None,
  522. src: Var[str] | str | None = None,
  523. type: Var[str] | str | None = None,
  524. access_key: Var[str] | str | None = None,
  525. auto_capitalize: Literal[
  526. "characters", "none", "off", "on", "sentences", "words"
  527. ]
  528. | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
  529. | None = None,
  530. content_editable: Literal["inherit", "plaintext-only", False, True]
  531. | Var[Literal["inherit", "plaintext-only", False, True]]
  532. | None = None,
  533. context_menu: Var[str] | str | None = None,
  534. dir: Var[str] | str | None = None,
  535. draggable: Var[bool] | bool | None = None,
  536. enter_key_hint: Literal[
  537. "done", "enter", "go", "next", "previous", "search", "send"
  538. ]
  539. | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
  540. | None = None,
  541. hidden: Var[bool] | bool | None = None,
  542. input_mode: Literal[
  543. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  544. ]
  545. | Var[
  546. Literal[
  547. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  548. ]
  549. ]
  550. | None = None,
  551. item_prop: Var[str] | str | None = None,
  552. lang: Var[str] | str | None = None,
  553. role: Literal[
  554. "alert",
  555. "alertdialog",
  556. "application",
  557. "article",
  558. "banner",
  559. "button",
  560. "cell",
  561. "checkbox",
  562. "columnheader",
  563. "combobox",
  564. "complementary",
  565. "contentinfo",
  566. "definition",
  567. "dialog",
  568. "directory",
  569. "document",
  570. "feed",
  571. "figure",
  572. "form",
  573. "grid",
  574. "gridcell",
  575. "group",
  576. "heading",
  577. "img",
  578. "link",
  579. "list",
  580. "listbox",
  581. "listitem",
  582. "log",
  583. "main",
  584. "marquee",
  585. "math",
  586. "menu",
  587. "menubar",
  588. "menuitem",
  589. "menuitemcheckbox",
  590. "menuitemradio",
  591. "navigation",
  592. "none",
  593. "note",
  594. "option",
  595. "presentation",
  596. "progressbar",
  597. "radio",
  598. "radiogroup",
  599. "region",
  600. "row",
  601. "rowgroup",
  602. "rowheader",
  603. "scrollbar",
  604. "search",
  605. "searchbox",
  606. "separator",
  607. "slider",
  608. "spinbutton",
  609. "status",
  610. "switch",
  611. "tab",
  612. "table",
  613. "tablist",
  614. "tabpanel",
  615. "term",
  616. "textbox",
  617. "timer",
  618. "toolbar",
  619. "tooltip",
  620. "tree",
  621. "treegrid",
  622. "treeitem",
  623. ]
  624. | Var[
  625. Literal[
  626. "alert",
  627. "alertdialog",
  628. "application",
  629. "article",
  630. "banner",
  631. "button",
  632. "cell",
  633. "checkbox",
  634. "columnheader",
  635. "combobox",
  636. "complementary",
  637. "contentinfo",
  638. "definition",
  639. "dialog",
  640. "directory",
  641. "document",
  642. "feed",
  643. "figure",
  644. "form",
  645. "grid",
  646. "gridcell",
  647. "group",
  648. "heading",
  649. "img",
  650. "link",
  651. "list",
  652. "listbox",
  653. "listitem",
  654. "log",
  655. "main",
  656. "marquee",
  657. "math",
  658. "menu",
  659. "menubar",
  660. "menuitem",
  661. "menuitemcheckbox",
  662. "menuitemradio",
  663. "navigation",
  664. "none",
  665. "note",
  666. "option",
  667. "presentation",
  668. "progressbar",
  669. "radio",
  670. "radiogroup",
  671. "region",
  672. "row",
  673. "rowgroup",
  674. "rowheader",
  675. "scrollbar",
  676. "search",
  677. "searchbox",
  678. "separator",
  679. "slider",
  680. "spinbutton",
  681. "status",
  682. "switch",
  683. "tab",
  684. "table",
  685. "tablist",
  686. "tabpanel",
  687. "term",
  688. "textbox",
  689. "timer",
  690. "toolbar",
  691. "tooltip",
  692. "tree",
  693. "treegrid",
  694. "treeitem",
  695. ]
  696. ]
  697. | None = None,
  698. slot: Var[str] | str | None = None,
  699. spell_check: Var[bool] | bool | None = None,
  700. tab_index: Var[int] | int | None = None,
  701. title: Var[str] | str | None = None,
  702. style: Style | None = None,
  703. key: Any | None = None,
  704. id: Any | None = None,
  705. class_name: Any | None = None,
  706. autofocus: bool | None = None,
  707. custom_attrs: dict[str, Var | Any] | None = None,
  708. on_blur: Optional[EventType[()]] = None,
  709. on_click: Optional[EventType[()]] = None,
  710. on_context_menu: Optional[EventType[()]] = None,
  711. on_double_click: Optional[EventType[()]] = None,
  712. on_focus: Optional[EventType[()]] = None,
  713. on_mount: Optional[EventType[()]] = None,
  714. on_mouse_down: Optional[EventType[()]] = None,
  715. on_mouse_enter: Optional[EventType[()]] = None,
  716. on_mouse_leave: Optional[EventType[()]] = None,
  717. on_mouse_move: Optional[EventType[()]] = None,
  718. on_mouse_out: Optional[EventType[()]] = None,
  719. on_mouse_over: Optional[EventType[()]] = None,
  720. on_mouse_up: Optional[EventType[()]] = None,
  721. on_scroll: Optional[EventType[()]] = None,
  722. on_unmount: Optional[EventType[()]] = None,
  723. **props,
  724. ) -> "Script":
  725. """Create the component.
  726. Args:
  727. *children: The children of the component.
  728. async_: Indicates that the script should be executed asynchronously
  729. char_set: Character encoding of the external script
  730. cross_origin: Configures the CORS requests for the script
  731. defer: Indicates that the script should be executed after the page has finished parsing
  732. integrity: Security feature allowing browsers to verify what they fetch
  733. referrer_policy: Specifies which referrer information to send when fetching the script
  734. src: URL of an external script
  735. type: Specifies the MIME type of the script
  736. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  737. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  738. content_editable: Indicates whether the element's content is editable.
  739. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  740. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  741. draggable: Defines whether the element can be dragged.
  742. enter_key_hint: Hints what media types the media element is able to play.
  743. hidden: Defines whether the element is hidden.
  744. input_mode: Defines the type of the element.
  745. item_prop: Defines the name of the element for metadata purposes.
  746. lang: Defines the language used in the element.
  747. role: Defines the role of the element.
  748. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  749. spell_check: Defines whether the element may be checked for spelling errors.
  750. tab_index: Defines the position of the current element in the tabbing order.
  751. title: Defines a tooltip for the element.
  752. style: The style of the component.
  753. key: A unique key for the component.
  754. id: The id for the component.
  755. class_name: The class name for the component.
  756. autofocus: Whether the component should take the focus once the page is loaded
  757. custom_attrs: custom attribute
  758. **props: The props of the component.
  759. Returns:
  760. The component.
  761. """
  762. ...
  763. canvas = Canvas.create
  764. noscript = Noscript.create
  765. script = Script.create