1
0

modal.pyi 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700
  1. """Stub file for reflex/components/chakra/overlay/modal.py"""
  2. # ------------------- DO NOT EDIT ----------------------
  3. # This file was generated by `scripts/pyi_generator.py`!
  4. # ------------------------------------------------------
  5. from typing import Any, Dict, Literal, Optional, Union, overload
  6. from reflex.vars import Var, BaseVar, ComputedVar
  7. from reflex.event import EventChain, EventHandler, EventSpec
  8. from reflex.style import Style
  9. from typing import Any, Literal, Optional, Union
  10. from reflex.components.chakra import ChakraComponent
  11. from reflex.components.chakra.media import Icon
  12. from reflex.components.component import Component
  13. from reflex.vars import Var
  14. ModalSizes = Literal["xs", "sm", "md", "lg", "xl", "full"]
  15. class BaseModal(ChakraComponent):
  16. @overload
  17. @classmethod
  18. def create( # type: ignore
  19. cls,
  20. *children,
  21. style: Optional[Style] = None,
  22. key: Optional[Any] = None,
  23. id: Optional[Any] = None,
  24. class_name: Optional[Any] = None,
  25. autofocus: Optional[bool] = None,
  26. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  27. on_blur: Optional[
  28. Union[EventHandler, EventSpec, list, function, BaseVar]
  29. ] = None,
  30. on_click: Optional[
  31. Union[EventHandler, EventSpec, list, function, BaseVar]
  32. ] = None,
  33. on_context_menu: Optional[
  34. Union[EventHandler, EventSpec, list, function, BaseVar]
  35. ] = None,
  36. on_double_click: Optional[
  37. Union[EventHandler, EventSpec, list, function, BaseVar]
  38. ] = None,
  39. on_focus: Optional[
  40. Union[EventHandler, EventSpec, list, function, BaseVar]
  41. ] = None,
  42. on_mount: Optional[
  43. Union[EventHandler, EventSpec, list, function, BaseVar]
  44. ] = None,
  45. on_mouse_down: Optional[
  46. Union[EventHandler, EventSpec, list, function, BaseVar]
  47. ] = None,
  48. on_mouse_enter: Optional[
  49. Union[EventHandler, EventSpec, list, function, BaseVar]
  50. ] = None,
  51. on_mouse_leave: Optional[
  52. Union[EventHandler, EventSpec, list, function, BaseVar]
  53. ] = None,
  54. on_mouse_move: Optional[
  55. Union[EventHandler, EventSpec, list, function, BaseVar]
  56. ] = None,
  57. on_mouse_out: Optional[
  58. Union[EventHandler, EventSpec, list, function, BaseVar]
  59. ] = None,
  60. on_mouse_over: Optional[
  61. Union[EventHandler, EventSpec, list, function, BaseVar]
  62. ] = None,
  63. on_mouse_up: Optional[
  64. Union[EventHandler, EventSpec, list, function, BaseVar]
  65. ] = None,
  66. on_scroll: Optional[
  67. Union[EventHandler, EventSpec, list, function, BaseVar]
  68. ] = None,
  69. on_unmount: Optional[
  70. Union[EventHandler, EventSpec, list, function, BaseVar]
  71. ] = None,
  72. **props
  73. ) -> "BaseModal":
  74. """Create the component.
  75. Args:
  76. *children: The children of the component.
  77. style: The style of the component.
  78. key: A unique key for the component.
  79. id: The id for the component.
  80. class_name: The class name for the component.
  81. autofocus: Whether the component should take the focus once the page is loaded
  82. custom_attrs: custom attribute
  83. **props: The props of the component.
  84. Returns:
  85. The component.
  86. Raises:
  87. TypeError: If an invalid child is passed.
  88. """
  89. ...
  90. class Modal(BaseModal):
  91. def get_event_triggers(self) -> dict[str, Union[Var, Any]]: ...
  92. @overload
  93. @classmethod
  94. def create( # type: ignore
  95. cls,
  96. *children,
  97. header: Optional[Union[Component, str]] = None,
  98. body: Optional[Union[Component, str]] = None,
  99. footer: Optional[Union[Component, str]] = None,
  100. close_button: Optional[Component] = None,
  101. is_open: Optional[Union[Var[bool], bool]] = None,
  102. allow_pinch_zoom: Optional[Union[Var[bool], bool]] = None,
  103. auto_focus: Optional[Union[Var[bool], bool]] = None,
  104. block_scroll_on_mount: Optional[Union[Var[bool], bool]] = None,
  105. close_on_esc: Optional[Union[Var[bool], bool]] = None,
  106. close_on_overlay_click: Optional[Union[Var[bool], bool]] = None,
  107. is_centered: Optional[Union[Var[bool], bool]] = None,
  108. lock_focus_across_frames: Optional[Union[Var[bool], bool]] = None,
  109. motion_preset: Optional[Union[Var[str], str]] = None,
  110. preserve_scroll_bar_gap: Optional[Union[Var[bool], bool]] = None,
  111. return_focus_on_close: Optional[Union[Var[bool], bool]] = None,
  112. size: Optional[
  113. Union[
  114. Var[Literal["xs", "sm", "md", "lg", "xl", "full"]],
  115. Literal["xs", "sm", "md", "lg", "xl", "full"],
  116. ]
  117. ] = None,
  118. use_inert: Optional[Union[Var[bool], bool]] = None,
  119. style: Optional[Style] = None,
  120. key: Optional[Any] = None,
  121. id: Optional[Any] = None,
  122. class_name: Optional[Any] = None,
  123. autofocus: Optional[bool] = None,
  124. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  125. on_blur: Optional[
  126. Union[EventHandler, EventSpec, list, function, BaseVar]
  127. ] = None,
  128. on_click: Optional[
  129. Union[EventHandler, EventSpec, list, function, BaseVar]
  130. ] = None,
  131. on_close: Optional[
  132. Union[EventHandler, EventSpec, list, function, BaseVar]
  133. ] = None,
  134. on_close_complete: Optional[
  135. Union[EventHandler, EventSpec, list, function, BaseVar]
  136. ] = None,
  137. on_context_menu: Optional[
  138. Union[EventHandler, EventSpec, list, function, BaseVar]
  139. ] = None,
  140. on_double_click: Optional[
  141. Union[EventHandler, EventSpec, list, function, BaseVar]
  142. ] = None,
  143. on_esc: Optional[
  144. Union[EventHandler, EventSpec, list, function, BaseVar]
  145. ] = None,
  146. on_focus: Optional[
  147. Union[EventHandler, EventSpec, list, function, BaseVar]
  148. ] = None,
  149. on_mount: Optional[
  150. Union[EventHandler, EventSpec, list, function, BaseVar]
  151. ] = None,
  152. on_mouse_down: Optional[
  153. Union[EventHandler, EventSpec, list, function, BaseVar]
  154. ] = None,
  155. on_mouse_enter: Optional[
  156. Union[EventHandler, EventSpec, list, function, BaseVar]
  157. ] = None,
  158. on_mouse_leave: Optional[
  159. Union[EventHandler, EventSpec, list, function, BaseVar]
  160. ] = None,
  161. on_mouse_move: Optional[
  162. Union[EventHandler, EventSpec, list, function, BaseVar]
  163. ] = None,
  164. on_mouse_out: Optional[
  165. Union[EventHandler, EventSpec, list, function, BaseVar]
  166. ] = None,
  167. on_mouse_over: Optional[
  168. Union[EventHandler, EventSpec, list, function, BaseVar]
  169. ] = None,
  170. on_mouse_up: Optional[
  171. Union[EventHandler, EventSpec, list, function, BaseVar]
  172. ] = None,
  173. on_overlay_click: Optional[
  174. Union[EventHandler, EventSpec, list, function, BaseVar]
  175. ] = None,
  176. on_scroll: Optional[
  177. Union[EventHandler, EventSpec, list, function, BaseVar]
  178. ] = None,
  179. on_unmount: Optional[
  180. Union[EventHandler, EventSpec, list, function, BaseVar]
  181. ] = None,
  182. **props
  183. ) -> "Modal":
  184. """Create a modal component.
  185. Args:
  186. *children: The children of the component.
  187. header: The header of the modal.
  188. body: The body of the modal.
  189. footer: The footer of the modal.
  190. close_button: The close button of the modal.
  191. is_open: If true, the modal will be open.
  192. allow_pinch_zoom: Handle zoom/pinch gestures on iOS devices when scroll locking is enabled. Defaults to false.
  193. auto_focus: If true, the modal will autofocus the first enabled and interactive element within the ModalContent
  194. block_scroll_on_mount: If true, scrolling will be disabled on the body when the modal opens.
  195. close_on_esc: If true, the modal will close when the Esc key is pressed
  196. close_on_overlay_click: If true, the modal will close when the overlay is clicked
  197. is_centered: If true, the modal will be centered on screen.
  198. lock_focus_across_frames: Enables aggressive focus capturing within iframes. - If true: keep focus in the lock, no matter where lock is active - If false: allows focus to move outside of iframe
  199. motion_preset: The transition that should be used for the modal
  200. preserve_scroll_bar_gap: If true, a `padding-right` will be applied to the body element that's equal to the width of the scrollbar. This can help prevent some unpleasant flickering effect and content adjustment when the modal opens
  201. return_focus_on_close: If true, the modal will return focus to the element that triggered it when it closes.
  202. size: "xs" | "sm" | "md" | "lg" | "xl" | "full"
  203. use_inert: A11y: If true, the siblings of the modal will have `aria-hidden` set to true so that screen readers can only see the modal. This is commonly known as making the other elements **inert**
  204. style: The style of the component.
  205. key: A unique key for the component.
  206. id: The id for the component.
  207. class_name: The class name for the component.
  208. autofocus: Whether the component should take the focus once the page is loaded
  209. custom_attrs: custom attribute
  210. **props: The properties of the component.
  211. Raises:
  212. AttributeError: error that occurs if conflicting props are passed
  213. Returns:
  214. The modal component.
  215. """
  216. ...
  217. class ModalOverlay(BaseModal):
  218. @overload
  219. @classmethod
  220. def create( # type: ignore
  221. cls,
  222. *children,
  223. style: Optional[Style] = None,
  224. key: Optional[Any] = None,
  225. id: Optional[Any] = None,
  226. class_name: Optional[Any] = None,
  227. autofocus: Optional[bool] = None,
  228. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  229. on_blur: Optional[
  230. Union[EventHandler, EventSpec, list, function, BaseVar]
  231. ] = None,
  232. on_click: Optional[
  233. Union[EventHandler, EventSpec, list, function, BaseVar]
  234. ] = None,
  235. on_context_menu: Optional[
  236. Union[EventHandler, EventSpec, list, function, BaseVar]
  237. ] = None,
  238. on_double_click: Optional[
  239. Union[EventHandler, EventSpec, list, function, BaseVar]
  240. ] = None,
  241. on_focus: Optional[
  242. Union[EventHandler, EventSpec, list, function, BaseVar]
  243. ] = None,
  244. on_mount: Optional[
  245. Union[EventHandler, EventSpec, list, function, BaseVar]
  246. ] = None,
  247. on_mouse_down: Optional[
  248. Union[EventHandler, EventSpec, list, function, BaseVar]
  249. ] = None,
  250. on_mouse_enter: Optional[
  251. Union[EventHandler, EventSpec, list, function, BaseVar]
  252. ] = None,
  253. on_mouse_leave: Optional[
  254. Union[EventHandler, EventSpec, list, function, BaseVar]
  255. ] = None,
  256. on_mouse_move: Optional[
  257. Union[EventHandler, EventSpec, list, function, BaseVar]
  258. ] = None,
  259. on_mouse_out: Optional[
  260. Union[EventHandler, EventSpec, list, function, BaseVar]
  261. ] = None,
  262. on_mouse_over: Optional[
  263. Union[EventHandler, EventSpec, list, function, BaseVar]
  264. ] = None,
  265. on_mouse_up: Optional[
  266. Union[EventHandler, EventSpec, list, function, BaseVar]
  267. ] = None,
  268. on_scroll: Optional[
  269. Union[EventHandler, EventSpec, list, function, BaseVar]
  270. ] = None,
  271. on_unmount: Optional[
  272. Union[EventHandler, EventSpec, list, function, BaseVar]
  273. ] = None,
  274. **props
  275. ) -> "ModalOverlay":
  276. """Create the component.
  277. Args:
  278. *children: The children of the component.
  279. style: The style of the component.
  280. key: A unique key for the component.
  281. id: The id for the component.
  282. class_name: The class name for the component.
  283. autofocus: Whether the component should take the focus once the page is loaded
  284. custom_attrs: custom attribute
  285. **props: The props of the component.
  286. Returns:
  287. The component.
  288. Raises:
  289. TypeError: If an invalid child is passed.
  290. """
  291. ...
  292. class ModalHeader(BaseModal):
  293. @overload
  294. @classmethod
  295. def create( # type: ignore
  296. cls,
  297. *children,
  298. style: Optional[Style] = None,
  299. key: Optional[Any] = None,
  300. id: Optional[Any] = None,
  301. class_name: Optional[Any] = None,
  302. autofocus: Optional[bool] = None,
  303. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  304. on_blur: Optional[
  305. Union[EventHandler, EventSpec, list, function, BaseVar]
  306. ] = None,
  307. on_click: Optional[
  308. Union[EventHandler, EventSpec, list, function, BaseVar]
  309. ] = None,
  310. on_context_menu: Optional[
  311. Union[EventHandler, EventSpec, list, function, BaseVar]
  312. ] = None,
  313. on_double_click: Optional[
  314. Union[EventHandler, EventSpec, list, function, BaseVar]
  315. ] = None,
  316. on_focus: Optional[
  317. Union[EventHandler, EventSpec, list, function, BaseVar]
  318. ] = None,
  319. on_mount: Optional[
  320. Union[EventHandler, EventSpec, list, function, BaseVar]
  321. ] = None,
  322. on_mouse_down: Optional[
  323. Union[EventHandler, EventSpec, list, function, BaseVar]
  324. ] = None,
  325. on_mouse_enter: Optional[
  326. Union[EventHandler, EventSpec, list, function, BaseVar]
  327. ] = None,
  328. on_mouse_leave: Optional[
  329. Union[EventHandler, EventSpec, list, function, BaseVar]
  330. ] = None,
  331. on_mouse_move: Optional[
  332. Union[EventHandler, EventSpec, list, function, BaseVar]
  333. ] = None,
  334. on_mouse_out: Optional[
  335. Union[EventHandler, EventSpec, list, function, BaseVar]
  336. ] = None,
  337. on_mouse_over: Optional[
  338. Union[EventHandler, EventSpec, list, function, BaseVar]
  339. ] = None,
  340. on_mouse_up: Optional[
  341. Union[EventHandler, EventSpec, list, function, BaseVar]
  342. ] = None,
  343. on_scroll: Optional[
  344. Union[EventHandler, EventSpec, list, function, BaseVar]
  345. ] = None,
  346. on_unmount: Optional[
  347. Union[EventHandler, EventSpec, list, function, BaseVar]
  348. ] = None,
  349. **props
  350. ) -> "ModalHeader":
  351. """Create the component.
  352. Args:
  353. *children: The children of the component.
  354. style: The style of the component.
  355. key: A unique key for the component.
  356. id: The id for the component.
  357. class_name: The class name for the component.
  358. autofocus: Whether the component should take the focus once the page is loaded
  359. custom_attrs: custom attribute
  360. **props: The props of the component.
  361. Returns:
  362. The component.
  363. Raises:
  364. TypeError: If an invalid child is passed.
  365. """
  366. ...
  367. class ModalFooter(BaseModal):
  368. @overload
  369. @classmethod
  370. def create( # type: ignore
  371. cls,
  372. *children,
  373. style: Optional[Style] = None,
  374. key: Optional[Any] = None,
  375. id: Optional[Any] = None,
  376. class_name: Optional[Any] = None,
  377. autofocus: Optional[bool] = None,
  378. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  379. on_blur: Optional[
  380. Union[EventHandler, EventSpec, list, function, BaseVar]
  381. ] = None,
  382. on_click: Optional[
  383. Union[EventHandler, EventSpec, list, function, BaseVar]
  384. ] = None,
  385. on_context_menu: Optional[
  386. Union[EventHandler, EventSpec, list, function, BaseVar]
  387. ] = None,
  388. on_double_click: Optional[
  389. Union[EventHandler, EventSpec, list, function, BaseVar]
  390. ] = None,
  391. on_focus: Optional[
  392. Union[EventHandler, EventSpec, list, function, BaseVar]
  393. ] = None,
  394. on_mount: Optional[
  395. Union[EventHandler, EventSpec, list, function, BaseVar]
  396. ] = None,
  397. on_mouse_down: Optional[
  398. Union[EventHandler, EventSpec, list, function, BaseVar]
  399. ] = None,
  400. on_mouse_enter: Optional[
  401. Union[EventHandler, EventSpec, list, function, BaseVar]
  402. ] = None,
  403. on_mouse_leave: Optional[
  404. Union[EventHandler, EventSpec, list, function, BaseVar]
  405. ] = None,
  406. on_mouse_move: Optional[
  407. Union[EventHandler, EventSpec, list, function, BaseVar]
  408. ] = None,
  409. on_mouse_out: Optional[
  410. Union[EventHandler, EventSpec, list, function, BaseVar]
  411. ] = None,
  412. on_mouse_over: Optional[
  413. Union[EventHandler, EventSpec, list, function, BaseVar]
  414. ] = None,
  415. on_mouse_up: Optional[
  416. Union[EventHandler, EventSpec, list, function, BaseVar]
  417. ] = None,
  418. on_scroll: Optional[
  419. Union[EventHandler, EventSpec, list, function, BaseVar]
  420. ] = None,
  421. on_unmount: Optional[
  422. Union[EventHandler, EventSpec, list, function, BaseVar]
  423. ] = None,
  424. **props
  425. ) -> "ModalFooter":
  426. """Create the component.
  427. Args:
  428. *children: The children of the component.
  429. style: The style of the component.
  430. key: A unique key for the component.
  431. id: The id for the component.
  432. class_name: The class name for the component.
  433. autofocus: Whether the component should take the focus once the page is loaded
  434. custom_attrs: custom attribute
  435. **props: The props of the component.
  436. Returns:
  437. The component.
  438. Raises:
  439. TypeError: If an invalid child is passed.
  440. """
  441. ...
  442. class ModalContent(BaseModal):
  443. @overload
  444. @classmethod
  445. def create( # type: ignore
  446. cls,
  447. *children,
  448. style: Optional[Style] = None,
  449. key: Optional[Any] = None,
  450. id: Optional[Any] = None,
  451. class_name: Optional[Any] = None,
  452. autofocus: Optional[bool] = None,
  453. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  454. on_blur: Optional[
  455. Union[EventHandler, EventSpec, list, function, BaseVar]
  456. ] = None,
  457. on_click: Optional[
  458. Union[EventHandler, EventSpec, list, function, BaseVar]
  459. ] = None,
  460. on_context_menu: Optional[
  461. Union[EventHandler, EventSpec, list, function, BaseVar]
  462. ] = None,
  463. on_double_click: Optional[
  464. Union[EventHandler, EventSpec, list, function, BaseVar]
  465. ] = None,
  466. on_focus: Optional[
  467. Union[EventHandler, EventSpec, list, function, BaseVar]
  468. ] = None,
  469. on_mount: Optional[
  470. Union[EventHandler, EventSpec, list, function, BaseVar]
  471. ] = None,
  472. on_mouse_down: Optional[
  473. Union[EventHandler, EventSpec, list, function, BaseVar]
  474. ] = None,
  475. on_mouse_enter: Optional[
  476. Union[EventHandler, EventSpec, list, function, BaseVar]
  477. ] = None,
  478. on_mouse_leave: Optional[
  479. Union[EventHandler, EventSpec, list, function, BaseVar]
  480. ] = None,
  481. on_mouse_move: Optional[
  482. Union[EventHandler, EventSpec, list, function, BaseVar]
  483. ] = None,
  484. on_mouse_out: Optional[
  485. Union[EventHandler, EventSpec, list, function, BaseVar]
  486. ] = None,
  487. on_mouse_over: Optional[
  488. Union[EventHandler, EventSpec, list, function, BaseVar]
  489. ] = None,
  490. on_mouse_up: Optional[
  491. Union[EventHandler, EventSpec, list, function, BaseVar]
  492. ] = None,
  493. on_scroll: Optional[
  494. Union[EventHandler, EventSpec, list, function, BaseVar]
  495. ] = None,
  496. on_unmount: Optional[
  497. Union[EventHandler, EventSpec, list, function, BaseVar]
  498. ] = None,
  499. **props
  500. ) -> "ModalContent":
  501. """Create the component.
  502. Args:
  503. *children: The children of the component.
  504. style: The style of the component.
  505. key: A unique key for the component.
  506. id: The id for the component.
  507. class_name: The class name for the component.
  508. autofocus: Whether the component should take the focus once the page is loaded
  509. custom_attrs: custom attribute
  510. **props: The props of the component.
  511. Returns:
  512. The component.
  513. Raises:
  514. TypeError: If an invalid child is passed.
  515. """
  516. ...
  517. class ModalBody(BaseModal):
  518. @overload
  519. @classmethod
  520. def create( # type: ignore
  521. cls,
  522. *children,
  523. style: Optional[Style] = None,
  524. key: Optional[Any] = None,
  525. id: Optional[Any] = None,
  526. class_name: Optional[Any] = None,
  527. autofocus: Optional[bool] = None,
  528. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  529. on_blur: Optional[
  530. Union[EventHandler, EventSpec, list, function, BaseVar]
  531. ] = None,
  532. on_click: Optional[
  533. Union[EventHandler, EventSpec, list, function, BaseVar]
  534. ] = None,
  535. on_context_menu: Optional[
  536. Union[EventHandler, EventSpec, list, function, BaseVar]
  537. ] = None,
  538. on_double_click: Optional[
  539. Union[EventHandler, EventSpec, list, function, BaseVar]
  540. ] = None,
  541. on_focus: Optional[
  542. Union[EventHandler, EventSpec, list, function, BaseVar]
  543. ] = None,
  544. on_mount: Optional[
  545. Union[EventHandler, EventSpec, list, function, BaseVar]
  546. ] = None,
  547. on_mouse_down: Optional[
  548. Union[EventHandler, EventSpec, list, function, BaseVar]
  549. ] = None,
  550. on_mouse_enter: Optional[
  551. Union[EventHandler, EventSpec, list, function, BaseVar]
  552. ] = None,
  553. on_mouse_leave: Optional[
  554. Union[EventHandler, EventSpec, list, function, BaseVar]
  555. ] = None,
  556. on_mouse_move: Optional[
  557. Union[EventHandler, EventSpec, list, function, BaseVar]
  558. ] = None,
  559. on_mouse_out: Optional[
  560. Union[EventHandler, EventSpec, list, function, BaseVar]
  561. ] = None,
  562. on_mouse_over: Optional[
  563. Union[EventHandler, EventSpec, list, function, BaseVar]
  564. ] = None,
  565. on_mouse_up: Optional[
  566. Union[EventHandler, EventSpec, list, function, BaseVar]
  567. ] = None,
  568. on_scroll: Optional[
  569. Union[EventHandler, EventSpec, list, function, BaseVar]
  570. ] = None,
  571. on_unmount: Optional[
  572. Union[EventHandler, EventSpec, list, function, BaseVar]
  573. ] = None,
  574. **props
  575. ) -> "ModalBody":
  576. """Create the component.
  577. Args:
  578. *children: The children of the component.
  579. style: The style of the component.
  580. key: A unique key for the component.
  581. id: The id for the component.
  582. class_name: The class name for the component.
  583. autofocus: Whether the component should take the focus once the page is loaded
  584. custom_attrs: custom attribute
  585. **props: The props of the component.
  586. Returns:
  587. The component.
  588. Raises:
  589. TypeError: If an invalid child is passed.
  590. """
  591. ...
  592. class ModalCloseButton(BaseModal):
  593. @overload
  594. @classmethod
  595. def create( # type: ignore
  596. cls,
  597. *children,
  598. style: Optional[Style] = None,
  599. key: Optional[Any] = None,
  600. id: Optional[Any] = None,
  601. class_name: Optional[Any] = None,
  602. autofocus: Optional[bool] = None,
  603. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  604. on_blur: Optional[
  605. Union[EventHandler, EventSpec, list, function, BaseVar]
  606. ] = None,
  607. on_click: Optional[
  608. Union[EventHandler, EventSpec, list, function, BaseVar]
  609. ] = None,
  610. on_context_menu: Optional[
  611. Union[EventHandler, EventSpec, list, function, BaseVar]
  612. ] = None,
  613. on_double_click: Optional[
  614. Union[EventHandler, EventSpec, list, function, BaseVar]
  615. ] = None,
  616. on_focus: Optional[
  617. Union[EventHandler, EventSpec, list, function, BaseVar]
  618. ] = None,
  619. on_mount: Optional[
  620. Union[EventHandler, EventSpec, list, function, BaseVar]
  621. ] = None,
  622. on_mouse_down: Optional[
  623. Union[EventHandler, EventSpec, list, function, BaseVar]
  624. ] = None,
  625. on_mouse_enter: Optional[
  626. Union[EventHandler, EventSpec, list, function, BaseVar]
  627. ] = None,
  628. on_mouse_leave: Optional[
  629. Union[EventHandler, EventSpec, list, function, BaseVar]
  630. ] = None,
  631. on_mouse_move: Optional[
  632. Union[EventHandler, EventSpec, list, function, BaseVar]
  633. ] = None,
  634. on_mouse_out: Optional[
  635. Union[EventHandler, EventSpec, list, function, BaseVar]
  636. ] = None,
  637. on_mouse_over: Optional[
  638. Union[EventHandler, EventSpec, list, function, BaseVar]
  639. ] = None,
  640. on_mouse_up: Optional[
  641. Union[EventHandler, EventSpec, list, function, BaseVar]
  642. ] = None,
  643. on_scroll: Optional[
  644. Union[EventHandler, EventSpec, list, function, BaseVar]
  645. ] = None,
  646. on_unmount: Optional[
  647. Union[EventHandler, EventSpec, list, function, BaseVar]
  648. ] = None,
  649. **props
  650. ) -> "ModalCloseButton":
  651. """Create the component.
  652. Args:
  653. *children: The children of the component.
  654. style: The style of the component.
  655. key: A unique key for the component.
  656. id: The id for the component.
  657. class_name: The class name for the component.
  658. autofocus: Whether the component should take the focus once the page is loaded
  659. custom_attrs: custom attribute
  660. **props: The props of the component.
  661. Returns:
  662. The component.
  663. Raises:
  664. TypeError: If an invalid child is passed.
  665. """
  666. ...