scripts.pyi 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790
  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, Mapping, Optional, Sequence, overload
  6. from reflex.components.core.breakpoints import Breakpoints
  7. from reflex.event import EventType
  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: Sequence[Mapping[str, Any]]
  195. | Mapping[str, Any]
  196. | Var[Mapping[str, Any]]
  197. | Breakpoints
  198. | None = None,
  199. key: Any | None = None,
  200. id: Any | None = None,
  201. class_name: Any | None = None,
  202. autofocus: bool | None = None,
  203. custom_attrs: dict[str, Var | Any] | None = None,
  204. on_blur: Optional[EventType[()]] = None,
  205. on_click: Optional[EventType[()]] = None,
  206. on_context_menu: Optional[EventType[()]] = None,
  207. on_double_click: Optional[EventType[()]] = None,
  208. on_focus: Optional[EventType[()]] = None,
  209. on_mount: Optional[EventType[()]] = None,
  210. on_mouse_down: Optional[EventType[()]] = None,
  211. on_mouse_enter: Optional[EventType[()]] = None,
  212. on_mouse_leave: Optional[EventType[()]] = None,
  213. on_mouse_move: Optional[EventType[()]] = None,
  214. on_mouse_out: Optional[EventType[()]] = None,
  215. on_mouse_over: Optional[EventType[()]] = None,
  216. on_mouse_up: Optional[EventType[()]] = None,
  217. on_scroll: Optional[EventType[()]] = None,
  218. on_unmount: Optional[EventType[()]] = None,
  219. **props,
  220. ) -> "Canvas":
  221. """Create the component.
  222. Args:
  223. *children: The children of the component.
  224. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  225. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  226. content_editable: Indicates whether the element's content is editable.
  227. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  228. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  229. draggable: Defines whether the element can be dragged.
  230. enter_key_hint: Hints what media types the media element is able to play.
  231. hidden: Defines whether the element is hidden.
  232. input_mode: Defines the type of the element.
  233. item_prop: Defines the name of the element for metadata purposes.
  234. lang: Defines the language used in the element.
  235. role: Defines the role of the element.
  236. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  237. spell_check: Defines whether the element may be checked for spelling errors.
  238. tab_index: Defines the position of the current element in the tabbing order.
  239. title: Defines a tooltip for the element.
  240. style: The style of the component.
  241. key: A unique key for the component.
  242. id: The id for the component.
  243. class_name: The class name for the component.
  244. autofocus: Whether the component should take the focus once the page is loaded
  245. custom_attrs: custom attribute
  246. **props: The props of the component.
  247. Returns:
  248. The component.
  249. """
  250. ...
  251. class Noscript(BaseHTML):
  252. @overload
  253. @classmethod
  254. def create( # type: ignore
  255. cls,
  256. *children,
  257. access_key: Var[str] | str | None = None,
  258. auto_capitalize: Literal[
  259. "characters", "none", "off", "on", "sentences", "words"
  260. ]
  261. | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
  262. | None = None,
  263. content_editable: Literal["inherit", "plaintext-only", False, True]
  264. | Var[Literal["inherit", "plaintext-only", False, True]]
  265. | None = None,
  266. context_menu: Var[str] | str | None = None,
  267. dir: Var[str] | str | None = None,
  268. draggable: Var[bool] | bool | None = None,
  269. enter_key_hint: Literal[
  270. "done", "enter", "go", "next", "previous", "search", "send"
  271. ]
  272. | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
  273. | None = None,
  274. hidden: Var[bool] | bool | None = None,
  275. input_mode: Literal[
  276. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  277. ]
  278. | Var[
  279. Literal[
  280. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  281. ]
  282. ]
  283. | None = None,
  284. item_prop: Var[str] | str | None = None,
  285. lang: Var[str] | str | None = None,
  286. role: Literal[
  287. "alert",
  288. "alertdialog",
  289. "application",
  290. "article",
  291. "banner",
  292. "button",
  293. "cell",
  294. "checkbox",
  295. "columnheader",
  296. "combobox",
  297. "complementary",
  298. "contentinfo",
  299. "definition",
  300. "dialog",
  301. "directory",
  302. "document",
  303. "feed",
  304. "figure",
  305. "form",
  306. "grid",
  307. "gridcell",
  308. "group",
  309. "heading",
  310. "img",
  311. "link",
  312. "list",
  313. "listbox",
  314. "listitem",
  315. "log",
  316. "main",
  317. "marquee",
  318. "math",
  319. "menu",
  320. "menubar",
  321. "menuitem",
  322. "menuitemcheckbox",
  323. "menuitemradio",
  324. "navigation",
  325. "none",
  326. "note",
  327. "option",
  328. "presentation",
  329. "progressbar",
  330. "radio",
  331. "radiogroup",
  332. "region",
  333. "row",
  334. "rowgroup",
  335. "rowheader",
  336. "scrollbar",
  337. "search",
  338. "searchbox",
  339. "separator",
  340. "slider",
  341. "spinbutton",
  342. "status",
  343. "switch",
  344. "tab",
  345. "table",
  346. "tablist",
  347. "tabpanel",
  348. "term",
  349. "textbox",
  350. "timer",
  351. "toolbar",
  352. "tooltip",
  353. "tree",
  354. "treegrid",
  355. "treeitem",
  356. ]
  357. | Var[
  358. Literal[
  359. "alert",
  360. "alertdialog",
  361. "application",
  362. "article",
  363. "banner",
  364. "button",
  365. "cell",
  366. "checkbox",
  367. "columnheader",
  368. "combobox",
  369. "complementary",
  370. "contentinfo",
  371. "definition",
  372. "dialog",
  373. "directory",
  374. "document",
  375. "feed",
  376. "figure",
  377. "form",
  378. "grid",
  379. "gridcell",
  380. "group",
  381. "heading",
  382. "img",
  383. "link",
  384. "list",
  385. "listbox",
  386. "listitem",
  387. "log",
  388. "main",
  389. "marquee",
  390. "math",
  391. "menu",
  392. "menubar",
  393. "menuitem",
  394. "menuitemcheckbox",
  395. "menuitemradio",
  396. "navigation",
  397. "none",
  398. "note",
  399. "option",
  400. "presentation",
  401. "progressbar",
  402. "radio",
  403. "radiogroup",
  404. "region",
  405. "row",
  406. "rowgroup",
  407. "rowheader",
  408. "scrollbar",
  409. "search",
  410. "searchbox",
  411. "separator",
  412. "slider",
  413. "spinbutton",
  414. "status",
  415. "switch",
  416. "tab",
  417. "table",
  418. "tablist",
  419. "tabpanel",
  420. "term",
  421. "textbox",
  422. "timer",
  423. "toolbar",
  424. "tooltip",
  425. "tree",
  426. "treegrid",
  427. "treeitem",
  428. ]
  429. ]
  430. | None = None,
  431. slot: Var[str] | str | None = None,
  432. spell_check: Var[bool] | bool | None = None,
  433. tab_index: Var[int] | int | None = None,
  434. title: Var[str] | str | None = None,
  435. style: Sequence[Mapping[str, Any]]
  436. | Mapping[str, Any]
  437. | Var[Mapping[str, Any]]
  438. | Breakpoints
  439. | None = None,
  440. key: Any | None = None,
  441. id: Any | None = None,
  442. class_name: Any | None = None,
  443. autofocus: bool | None = None,
  444. custom_attrs: dict[str, Var | Any] | None = None,
  445. on_blur: Optional[EventType[()]] = None,
  446. on_click: Optional[EventType[()]] = None,
  447. on_context_menu: Optional[EventType[()]] = None,
  448. on_double_click: Optional[EventType[()]] = None,
  449. on_focus: Optional[EventType[()]] = None,
  450. on_mount: Optional[EventType[()]] = None,
  451. on_mouse_down: Optional[EventType[()]] = None,
  452. on_mouse_enter: Optional[EventType[()]] = None,
  453. on_mouse_leave: Optional[EventType[()]] = None,
  454. on_mouse_move: Optional[EventType[()]] = None,
  455. on_mouse_out: Optional[EventType[()]] = None,
  456. on_mouse_over: Optional[EventType[()]] = None,
  457. on_mouse_up: Optional[EventType[()]] = None,
  458. on_scroll: Optional[EventType[()]] = None,
  459. on_unmount: Optional[EventType[()]] = None,
  460. **props,
  461. ) -> "Noscript":
  462. """Create the component.
  463. Args:
  464. *children: The children of the component.
  465. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  466. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  467. content_editable: Indicates whether the element's content is editable.
  468. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  469. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  470. draggable: Defines whether the element can be dragged.
  471. enter_key_hint: Hints what media types the media element is able to play.
  472. hidden: Defines whether the element is hidden.
  473. input_mode: Defines the type of the element.
  474. item_prop: Defines the name of the element for metadata purposes.
  475. lang: Defines the language used in the element.
  476. role: Defines the role of the element.
  477. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  478. spell_check: Defines whether the element may be checked for spelling errors.
  479. tab_index: Defines the position of the current element in the tabbing order.
  480. title: Defines a tooltip for the element.
  481. style: The style of the component.
  482. key: A unique key for the component.
  483. id: The id for the component.
  484. class_name: The class name for the component.
  485. autofocus: Whether the component should take the focus once the page is loaded
  486. custom_attrs: custom attribute
  487. **props: The props of the component.
  488. Returns:
  489. The component.
  490. """
  491. ...
  492. class Script(BaseHTML):
  493. @overload
  494. @classmethod
  495. def create( # type: ignore
  496. cls,
  497. *children,
  498. async_: Var[bool] | bool | None = None,
  499. char_set: Var[str] | str | None = None,
  500. cross_origin: Literal["", "anonymous", "use-credentials"]
  501. | Var[Literal["", "anonymous", "use-credentials"]]
  502. | None = None,
  503. defer: Var[bool] | bool | None = None,
  504. integrity: Var[str] | str | None = None,
  505. referrer_policy: Literal[
  506. "",
  507. "no-referrer",
  508. "no-referrer-when-downgrade",
  509. "origin",
  510. "origin-when-cross-origin",
  511. "same-origin",
  512. "strict-origin",
  513. "strict-origin-when-cross-origin",
  514. "unsafe-url",
  515. ]
  516. | Var[
  517. Literal[
  518. "",
  519. "no-referrer",
  520. "no-referrer-when-downgrade",
  521. "origin",
  522. "origin-when-cross-origin",
  523. "same-origin",
  524. "strict-origin",
  525. "strict-origin-when-cross-origin",
  526. "unsafe-url",
  527. ]
  528. ]
  529. | None = None,
  530. src: Var[str] | str | None = None,
  531. type: Var[str] | str | None = None,
  532. access_key: Var[str] | str | None = None,
  533. auto_capitalize: Literal[
  534. "characters", "none", "off", "on", "sentences", "words"
  535. ]
  536. | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
  537. | None = None,
  538. content_editable: Literal["inherit", "plaintext-only", False, True]
  539. | Var[Literal["inherit", "plaintext-only", False, True]]
  540. | None = None,
  541. context_menu: Var[str] | str | None = None,
  542. dir: Var[str] | str | None = None,
  543. draggable: Var[bool] | bool | None = None,
  544. enter_key_hint: Literal[
  545. "done", "enter", "go", "next", "previous", "search", "send"
  546. ]
  547. | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
  548. | None = None,
  549. hidden: Var[bool] | bool | None = None,
  550. input_mode: Literal[
  551. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  552. ]
  553. | Var[
  554. Literal[
  555. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  556. ]
  557. ]
  558. | None = None,
  559. item_prop: Var[str] | str | None = None,
  560. lang: Var[str] | str | None = None,
  561. role: Literal[
  562. "alert",
  563. "alertdialog",
  564. "application",
  565. "article",
  566. "banner",
  567. "button",
  568. "cell",
  569. "checkbox",
  570. "columnheader",
  571. "combobox",
  572. "complementary",
  573. "contentinfo",
  574. "definition",
  575. "dialog",
  576. "directory",
  577. "document",
  578. "feed",
  579. "figure",
  580. "form",
  581. "grid",
  582. "gridcell",
  583. "group",
  584. "heading",
  585. "img",
  586. "link",
  587. "list",
  588. "listbox",
  589. "listitem",
  590. "log",
  591. "main",
  592. "marquee",
  593. "math",
  594. "menu",
  595. "menubar",
  596. "menuitem",
  597. "menuitemcheckbox",
  598. "menuitemradio",
  599. "navigation",
  600. "none",
  601. "note",
  602. "option",
  603. "presentation",
  604. "progressbar",
  605. "radio",
  606. "radiogroup",
  607. "region",
  608. "row",
  609. "rowgroup",
  610. "rowheader",
  611. "scrollbar",
  612. "search",
  613. "searchbox",
  614. "separator",
  615. "slider",
  616. "spinbutton",
  617. "status",
  618. "switch",
  619. "tab",
  620. "table",
  621. "tablist",
  622. "tabpanel",
  623. "term",
  624. "textbox",
  625. "timer",
  626. "toolbar",
  627. "tooltip",
  628. "tree",
  629. "treegrid",
  630. "treeitem",
  631. ]
  632. | Var[
  633. Literal[
  634. "alert",
  635. "alertdialog",
  636. "application",
  637. "article",
  638. "banner",
  639. "button",
  640. "cell",
  641. "checkbox",
  642. "columnheader",
  643. "combobox",
  644. "complementary",
  645. "contentinfo",
  646. "definition",
  647. "dialog",
  648. "directory",
  649. "document",
  650. "feed",
  651. "figure",
  652. "form",
  653. "grid",
  654. "gridcell",
  655. "group",
  656. "heading",
  657. "img",
  658. "link",
  659. "list",
  660. "listbox",
  661. "listitem",
  662. "log",
  663. "main",
  664. "marquee",
  665. "math",
  666. "menu",
  667. "menubar",
  668. "menuitem",
  669. "menuitemcheckbox",
  670. "menuitemradio",
  671. "navigation",
  672. "none",
  673. "note",
  674. "option",
  675. "presentation",
  676. "progressbar",
  677. "radio",
  678. "radiogroup",
  679. "region",
  680. "row",
  681. "rowgroup",
  682. "rowheader",
  683. "scrollbar",
  684. "search",
  685. "searchbox",
  686. "separator",
  687. "slider",
  688. "spinbutton",
  689. "status",
  690. "switch",
  691. "tab",
  692. "table",
  693. "tablist",
  694. "tabpanel",
  695. "term",
  696. "textbox",
  697. "timer",
  698. "toolbar",
  699. "tooltip",
  700. "tree",
  701. "treegrid",
  702. "treeitem",
  703. ]
  704. ]
  705. | None = None,
  706. slot: Var[str] | str | None = None,
  707. spell_check: Var[bool] | bool | None = None,
  708. tab_index: Var[int] | int | None = None,
  709. title: Var[str] | str | None = None,
  710. style: Sequence[Mapping[str, Any]]
  711. | Mapping[str, Any]
  712. | Var[Mapping[str, Any]]
  713. | Breakpoints
  714. | None = None,
  715. key: Any | None = None,
  716. id: Any | None = None,
  717. class_name: Any | None = None,
  718. autofocus: bool | None = None,
  719. custom_attrs: dict[str, Var | Any] | None = None,
  720. on_blur: Optional[EventType[()]] = None,
  721. on_click: Optional[EventType[()]] = None,
  722. on_context_menu: Optional[EventType[()]] = None,
  723. on_double_click: Optional[EventType[()]] = None,
  724. on_focus: Optional[EventType[()]] = None,
  725. on_mount: Optional[EventType[()]] = None,
  726. on_mouse_down: Optional[EventType[()]] = None,
  727. on_mouse_enter: Optional[EventType[()]] = None,
  728. on_mouse_leave: Optional[EventType[()]] = None,
  729. on_mouse_move: Optional[EventType[()]] = None,
  730. on_mouse_out: Optional[EventType[()]] = None,
  731. on_mouse_over: Optional[EventType[()]] = None,
  732. on_mouse_up: Optional[EventType[()]] = None,
  733. on_scroll: Optional[EventType[()]] = None,
  734. on_unmount: Optional[EventType[()]] = None,
  735. **props,
  736. ) -> "Script":
  737. """Create the component.
  738. Args:
  739. *children: The children of the component.
  740. async_: Indicates that the script should be executed asynchronously
  741. char_set: Character encoding of the external script
  742. cross_origin: Configures the CORS requests for the script
  743. defer: Indicates that the script should be executed after the page has finished parsing
  744. integrity: Security feature allowing browsers to verify what they fetch
  745. referrer_policy: Specifies which referrer information to send when fetching the script
  746. src: URL of an external script
  747. type: Specifies the MIME type of the script
  748. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  749. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  750. content_editable: Indicates whether the element's content is editable.
  751. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  752. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  753. draggable: Defines whether the element can be dragged.
  754. enter_key_hint: Hints what media types the media element is able to play.
  755. hidden: Defines whether the element is hidden.
  756. input_mode: Defines the type of the element.
  757. item_prop: Defines the name of the element for metadata purposes.
  758. lang: Defines the language used in the element.
  759. role: Defines the role of the element.
  760. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  761. spell_check: Defines whether the element may be checked for spelling errors.
  762. tab_index: Defines the position of the current element in the tabbing order.
  763. title: Defines a tooltip for the element.
  764. style: The style of the component.
  765. key: A unique key for the component.
  766. id: The id for the component.
  767. class_name: The class name for the component.
  768. autofocus: Whether the component should take the focus once the page is loaded
  769. custom_attrs: custom attribute
  770. **props: The props of the component.
  771. Returns:
  772. The component.
  773. """
  774. ...
  775. canvas = Canvas.create
  776. noscript = Noscript.create
  777. script = Script.create