modal.pyi 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621
  1. """Stub file for reflex/components/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.component import Component
  11. from reflex.components.libs.chakra import ChakraComponent
  12. from reflex.components.media import Icon
  13. from reflex.vars import Var
  14. ModalSizes = Literal["xs", "sm", "md", "lg", "xl", "full"]
  15. class Modal(ChakraComponent):
  16. def get_event_triggers(self) -> dict[str, Union[Var, Any]]: ...
  17. @overload
  18. @classmethod
  19. def create( # type: ignore
  20. cls,
  21. *children,
  22. header: Optional[Union[Component, str]] = None,
  23. body: Optional[Union[Component, str]] = None,
  24. footer: Optional[Union[Component, str]] = None,
  25. close_button: Optional[Component] = None,
  26. is_open: Optional[Union[Var[bool], bool]] = None,
  27. allow_pinch_zoom: Optional[Union[Var[bool], bool]] = None,
  28. auto_focus: Optional[Union[Var[bool], bool]] = None,
  29. block_scroll_on_mount: Optional[Union[Var[bool], bool]] = None,
  30. close_on_esc: Optional[Union[Var[bool], bool]] = None,
  31. close_on_overlay_click: Optional[Union[Var[bool], bool]] = None,
  32. is_centered: Optional[Union[Var[bool], bool]] = None,
  33. lock_focus_across_frames: Optional[Union[Var[bool], bool]] = None,
  34. motion_preset: Optional[Union[Var[str], str]] = None,
  35. preserve_scroll_bar_gap: Optional[Union[Var[bool], bool]] = None,
  36. return_focus_on_close: Optional[Union[Var[bool], bool]] = None,
  37. size: Optional[
  38. Union[
  39. Var[Literal["xs", "sm", "md", "lg", "xl", "full"]],
  40. Literal["xs", "sm", "md", "lg", "xl", "full"],
  41. ]
  42. ] = None,
  43. use_inert: Optional[Union[Var[bool], bool]] = None,
  44. style: Optional[Style] = None,
  45. key: Optional[Any] = None,
  46. id: Optional[Any] = None,
  47. class_name: Optional[Any] = None,
  48. autofocus: Optional[bool] = None,
  49. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  50. on_blur: Optional[
  51. Union[EventHandler, EventSpec, list, function, BaseVar]
  52. ] = None,
  53. on_click: Optional[
  54. Union[EventHandler, EventSpec, list, function, BaseVar]
  55. ] = None,
  56. on_close: Optional[
  57. Union[EventHandler, EventSpec, list, function, BaseVar]
  58. ] = None,
  59. on_close_complete: Optional[
  60. Union[EventHandler, EventSpec, list, function, BaseVar]
  61. ] = None,
  62. on_context_menu: Optional[
  63. Union[EventHandler, EventSpec, list, function, BaseVar]
  64. ] = None,
  65. on_double_click: Optional[
  66. Union[EventHandler, EventSpec, list, function, BaseVar]
  67. ] = None,
  68. on_esc: Optional[
  69. Union[EventHandler, EventSpec, list, function, BaseVar]
  70. ] = None,
  71. on_focus: Optional[
  72. Union[EventHandler, EventSpec, list, function, BaseVar]
  73. ] = None,
  74. on_mount: Optional[
  75. Union[EventHandler, EventSpec, list, function, BaseVar]
  76. ] = None,
  77. on_mouse_down: Optional[
  78. Union[EventHandler, EventSpec, list, function, BaseVar]
  79. ] = None,
  80. on_mouse_enter: Optional[
  81. Union[EventHandler, EventSpec, list, function, BaseVar]
  82. ] = None,
  83. on_mouse_leave: Optional[
  84. Union[EventHandler, EventSpec, list, function, BaseVar]
  85. ] = None,
  86. on_mouse_move: Optional[
  87. Union[EventHandler, EventSpec, list, function, BaseVar]
  88. ] = None,
  89. on_mouse_out: Optional[
  90. Union[EventHandler, EventSpec, list, function, BaseVar]
  91. ] = None,
  92. on_mouse_over: Optional[
  93. Union[EventHandler, EventSpec, list, function, BaseVar]
  94. ] = None,
  95. on_mouse_up: Optional[
  96. Union[EventHandler, EventSpec, list, function, BaseVar]
  97. ] = None,
  98. on_overlay_click: Optional[
  99. Union[EventHandler, EventSpec, list, function, BaseVar]
  100. ] = None,
  101. on_scroll: Optional[
  102. Union[EventHandler, EventSpec, list, function, BaseVar]
  103. ] = None,
  104. on_unmount: Optional[
  105. Union[EventHandler, EventSpec, list, function, BaseVar]
  106. ] = None,
  107. **props
  108. ) -> "Modal":
  109. """Create a modal component.
  110. Args:
  111. *children: The children of the component.
  112. header: The header of the modal.
  113. body: The body of the modal.
  114. footer: The footer of the modal.
  115. close_button: The close button of the modal.
  116. is_open: If true, the modal will be open.
  117. allow_pinch_zoom: Handle zoom/pinch gestures on iOS devices when scroll locking is enabled. Defaults to false.
  118. auto_focus: If true, the modal will autofocus the first enabled and interactive element within the ModalContent
  119. block_scroll_on_mount: If true, scrolling will be disabled on the body when the modal opens.
  120. close_on_esc: If true, the modal will close when the Esc key is pressed
  121. close_on_overlay_click: If true, the modal will close when the overlay is clicked
  122. is_centered: If true, the modal will be centered on screen.
  123. 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
  124. motion_preset: The transition that should be used for the modal
  125. 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
  126. return_focus_on_close: If true, the modal will return focus to the element that triggered it when it closes.
  127. size: "xs" | "sm" | "md" | "lg" | "xl" | "full"
  128. 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**
  129. style: The style of the component.
  130. key: A unique key for the component.
  131. id: The id for the component.
  132. class_name: The class name for the component.
  133. autofocus: Whether the component should take the focus once the page is loaded
  134. custom_attrs: custom attribute
  135. **props: The properties of the component.
  136. Raises:
  137. AttributeError: error that occurs if conflicting props are passed
  138. Returns:
  139. The modal component.
  140. """
  141. ...
  142. class ModalOverlay(ChakraComponent):
  143. @overload
  144. @classmethod
  145. def create( # type: ignore
  146. cls,
  147. *children,
  148. style: Optional[Style] = None,
  149. key: Optional[Any] = None,
  150. id: Optional[Any] = None,
  151. class_name: Optional[Any] = None,
  152. autofocus: Optional[bool] = None,
  153. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  154. on_blur: Optional[
  155. Union[EventHandler, EventSpec, list, function, BaseVar]
  156. ] = None,
  157. on_click: Optional[
  158. Union[EventHandler, EventSpec, list, function, BaseVar]
  159. ] = None,
  160. on_context_menu: Optional[
  161. Union[EventHandler, EventSpec, list, function, BaseVar]
  162. ] = None,
  163. on_double_click: Optional[
  164. Union[EventHandler, EventSpec, list, function, BaseVar]
  165. ] = None,
  166. on_focus: Optional[
  167. Union[EventHandler, EventSpec, list, function, BaseVar]
  168. ] = None,
  169. on_mount: Optional[
  170. Union[EventHandler, EventSpec, list, function, BaseVar]
  171. ] = None,
  172. on_mouse_down: Optional[
  173. Union[EventHandler, EventSpec, list, function, BaseVar]
  174. ] = None,
  175. on_mouse_enter: Optional[
  176. Union[EventHandler, EventSpec, list, function, BaseVar]
  177. ] = None,
  178. on_mouse_leave: Optional[
  179. Union[EventHandler, EventSpec, list, function, BaseVar]
  180. ] = None,
  181. on_mouse_move: Optional[
  182. Union[EventHandler, EventSpec, list, function, BaseVar]
  183. ] = None,
  184. on_mouse_out: Optional[
  185. Union[EventHandler, EventSpec, list, function, BaseVar]
  186. ] = None,
  187. on_mouse_over: Optional[
  188. Union[EventHandler, EventSpec, list, function, BaseVar]
  189. ] = None,
  190. on_mouse_up: Optional[
  191. Union[EventHandler, EventSpec, list, function, BaseVar]
  192. ] = None,
  193. on_scroll: Optional[
  194. Union[EventHandler, EventSpec, list, function, BaseVar]
  195. ] = None,
  196. on_unmount: Optional[
  197. Union[EventHandler, EventSpec, list, function, BaseVar]
  198. ] = None,
  199. **props
  200. ) -> "ModalOverlay":
  201. """Create the component.
  202. Args:
  203. *children: The children of the component.
  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 props of the component.
  211. Returns:
  212. The component.
  213. Raises:
  214. TypeError: If an invalid child is passed.
  215. """
  216. ...
  217. class ModalHeader(ChakraComponent):
  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. ) -> "ModalHeader":
  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 ModalFooter(ChakraComponent):
  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. ) -> "ModalFooter":
  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 ModalContent(ChakraComponent):
  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. ) -> "ModalContent":
  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 ModalBody(ChakraComponent):
  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. ) -> "ModalBody":
  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 ModalCloseButton(ChakraComponent):
  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. ) -> "ModalCloseButton":
  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. ...