drawer.pyi 25 KB

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