list.pyi 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576
  1. """Stub file for reflex/components/radix/themes/layout/list.py"""
  2. # ------------------- DO NOT EDIT ----------------------
  3. # This file was generated by `reflex/utils/pyi_generator.py`!
  4. # ------------------------------------------------------
  5. from typing import Any, Dict, Iterable, Literal, Optional, Union, overload
  6. from reflex.components.component import Component, ComponentNamespace
  7. from reflex.components.el.elements.typography import Li, Ol, Ul
  8. from reflex.components.markdown.markdown import MarkdownComponentMap
  9. from reflex.event import BASE_STATE, EventType
  10. from reflex.style import Style
  11. from reflex.vars.base import Var
  12. LiteralListStyleTypeUnordered = Literal["none", "disc", "circle", "square"]
  13. LiteralListStyleTypeOrdered = Literal[
  14. "none",
  15. "decimal",
  16. "decimal-leading-zero",
  17. "lower-roman",
  18. "upper-roman",
  19. "lower-greek",
  20. "lower-latin",
  21. "upper-latin",
  22. "armenian",
  23. "georgian",
  24. "lower-alpha",
  25. "upper-alpha",
  26. "hiragana",
  27. "katakana",
  28. ]
  29. class BaseList(Component, MarkdownComponentMap):
  30. @overload
  31. @classmethod
  32. def create( # type: ignore
  33. cls,
  34. *children,
  35. list_style_type: Optional[
  36. Union[
  37. Literal[
  38. "armenian",
  39. "decimal",
  40. "decimal-leading-zero",
  41. "georgian",
  42. "hiragana",
  43. "katakana",
  44. "lower-alpha",
  45. "lower-greek",
  46. "lower-latin",
  47. "lower-roman",
  48. "none",
  49. "upper-alpha",
  50. "upper-latin",
  51. "upper-roman",
  52. ],
  53. Literal["circle", "disc", "none", "square"],
  54. Var[
  55. Union[
  56. Literal[
  57. "armenian",
  58. "decimal",
  59. "decimal-leading-zero",
  60. "georgian",
  61. "hiragana",
  62. "katakana",
  63. "lower-alpha",
  64. "lower-greek",
  65. "lower-latin",
  66. "lower-roman",
  67. "none",
  68. "upper-alpha",
  69. "upper-latin",
  70. "upper-roman",
  71. ],
  72. Literal["circle", "disc", "none", "square"],
  73. ]
  74. ],
  75. ]
  76. ] = None,
  77. items: Optional[Union[Iterable, Var[Iterable]]] = None,
  78. style: Optional[Style] = None,
  79. key: Optional[Any] = None,
  80. id: Optional[Any] = None,
  81. class_name: Optional[Any] = None,
  82. autofocus: Optional[bool] = None,
  83. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  84. on_blur: Optional[EventType[[], BASE_STATE]] = None,
  85. on_click: Optional[EventType[[], BASE_STATE]] = None,
  86. on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
  87. on_double_click: Optional[EventType[[], BASE_STATE]] = None,
  88. on_focus: Optional[EventType[[], BASE_STATE]] = None,
  89. on_mount: Optional[EventType[[], BASE_STATE]] = None,
  90. on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
  91. on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
  92. on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
  93. on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
  94. on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
  95. on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
  96. on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
  97. on_scroll: Optional[EventType[[], BASE_STATE]] = None,
  98. on_unmount: Optional[EventType[[], BASE_STATE]] = None,
  99. **props,
  100. ) -> "BaseList":
  101. """Create a list component.
  102. Args:
  103. *children: The children of the component.
  104. list_style_type: The style of the list. Default to "none".
  105. items: A list of items to add to the list.
  106. style: The style of the component.
  107. key: A unique key for the component.
  108. id: The id for the component.
  109. class_name: The class name for the component.
  110. autofocus: Whether the component should take the focus once the page is loaded
  111. custom_attrs: custom attribute
  112. **props: The properties of the component.
  113. Returns:
  114. The list component.
  115. """
  116. ...
  117. def add_style(self) -> dict[str, Any] | None: ...
  118. class UnorderedList(BaseList, Ul):
  119. @overload
  120. @classmethod
  121. def create( # type: ignore
  122. cls,
  123. *children,
  124. list_style_type: Optional[
  125. Union[
  126. Literal[
  127. "armenian",
  128. "decimal",
  129. "decimal-leading-zero",
  130. "georgian",
  131. "hiragana",
  132. "katakana",
  133. "lower-alpha",
  134. "lower-greek",
  135. "lower-latin",
  136. "lower-roman",
  137. "none",
  138. "upper-alpha",
  139. "upper-latin",
  140. "upper-roman",
  141. ],
  142. Literal["circle", "disc", "none", "square"],
  143. Var[
  144. Union[
  145. Literal[
  146. "armenian",
  147. "decimal",
  148. "decimal-leading-zero",
  149. "georgian",
  150. "hiragana",
  151. "katakana",
  152. "lower-alpha",
  153. "lower-greek",
  154. "lower-latin",
  155. "lower-roman",
  156. "none",
  157. "upper-alpha",
  158. "upper-latin",
  159. "upper-roman",
  160. ],
  161. Literal["circle", "disc", "none", "square"],
  162. ]
  163. ],
  164. ]
  165. ] = None,
  166. items: Optional[Union[Iterable, Var[Iterable]]] = None,
  167. access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  168. auto_capitalize: Optional[
  169. Union[Var[Union[bool, int, str]], bool, int, str]
  170. ] = None,
  171. content_editable: Optional[
  172. Union[Var[Union[bool, int, str]], bool, int, str]
  173. ] = None,
  174. context_menu: Optional[
  175. Union[Var[Union[bool, int, str]], bool, int, str]
  176. ] = None,
  177. dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  178. draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  179. enter_key_hint: Optional[
  180. Union[Var[Union[bool, int, str]], bool, int, str]
  181. ] = None,
  182. hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  183. input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  184. item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  185. lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  186. role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  187. slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  188. spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  189. tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  190. title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  191. style: Optional[Style] = None,
  192. key: Optional[Any] = None,
  193. id: Optional[Any] = None,
  194. class_name: Optional[Any] = None,
  195. autofocus: Optional[bool] = None,
  196. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  197. on_blur: Optional[EventType[[], BASE_STATE]] = None,
  198. on_click: Optional[EventType[[], BASE_STATE]] = None,
  199. on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
  200. on_double_click: Optional[EventType[[], BASE_STATE]] = None,
  201. on_focus: Optional[EventType[[], BASE_STATE]] = None,
  202. on_mount: Optional[EventType[[], BASE_STATE]] = None,
  203. on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
  204. on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
  205. on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
  206. on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
  207. on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
  208. on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
  209. on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
  210. on_scroll: Optional[EventType[[], BASE_STATE]] = None,
  211. on_unmount: Optional[EventType[[], BASE_STATE]] = None,
  212. **props,
  213. ) -> "UnorderedList":
  214. """Create an unordered list component.
  215. Args:
  216. *children: The children of the component.
  217. list_style_type: The style of the list. Default to "none".
  218. items: A list of items to add to the list.
  219. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  220. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  221. content_editable: Indicates whether the element's content is editable.
  222. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  223. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  224. draggable: Defines whether the element can be dragged.
  225. enter_key_hint: Hints what media types the media element is able to play.
  226. hidden: Defines whether the element is hidden.
  227. input_mode: Defines the type of the element.
  228. item_prop: Defines the name of the element for metadata purposes.
  229. lang: Defines the language used in the element.
  230. role: Defines the role of the element.
  231. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  232. spell_check: Defines whether the element may be checked for spelling errors.
  233. tab_index: Defines the position of the current element in the tabbing order.
  234. title: Defines a tooltip for the element.
  235. style: The style of the component.
  236. key: A unique key for the component.
  237. id: The id for the component.
  238. class_name: The class name for the component.
  239. autofocus: Whether the component should take the focus once the page is loaded
  240. custom_attrs: custom attribute
  241. **props: The properties of the component.
  242. Returns:
  243. The list component.
  244. """
  245. ...
  246. class OrderedList(BaseList, Ol):
  247. @overload
  248. @classmethod
  249. def create( # type: ignore
  250. cls,
  251. *children,
  252. list_style_type: Optional[
  253. Union[
  254. Literal[
  255. "armenian",
  256. "decimal",
  257. "decimal-leading-zero",
  258. "georgian",
  259. "hiragana",
  260. "katakana",
  261. "lower-alpha",
  262. "lower-greek",
  263. "lower-latin",
  264. "lower-roman",
  265. "none",
  266. "upper-alpha",
  267. "upper-latin",
  268. "upper-roman",
  269. ],
  270. Literal["circle", "disc", "none", "square"],
  271. Var[
  272. Union[
  273. Literal[
  274. "armenian",
  275. "decimal",
  276. "decimal-leading-zero",
  277. "georgian",
  278. "hiragana",
  279. "katakana",
  280. "lower-alpha",
  281. "lower-greek",
  282. "lower-latin",
  283. "lower-roman",
  284. "none",
  285. "upper-alpha",
  286. "upper-latin",
  287. "upper-roman",
  288. ],
  289. Literal["circle", "disc", "none", "square"],
  290. ]
  291. ],
  292. ]
  293. ] = None,
  294. items: Optional[Union[Iterable, Var[Iterable]]] = None,
  295. reversed: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  296. start: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  297. type: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  298. access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  299. auto_capitalize: Optional[
  300. Union[Var[Union[bool, int, str]], bool, int, str]
  301. ] = None,
  302. content_editable: Optional[
  303. Union[Var[Union[bool, int, str]], bool, int, str]
  304. ] = None,
  305. context_menu: Optional[
  306. Union[Var[Union[bool, int, str]], bool, int, str]
  307. ] = None,
  308. dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  309. draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  310. enter_key_hint: Optional[
  311. Union[Var[Union[bool, int, str]], bool, int, str]
  312. ] = None,
  313. hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  314. input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  315. item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  316. lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  317. role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  318. slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  319. spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  320. tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  321. title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  322. style: Optional[Style] = None,
  323. key: Optional[Any] = None,
  324. id: Optional[Any] = None,
  325. class_name: Optional[Any] = None,
  326. autofocus: Optional[bool] = None,
  327. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  328. on_blur: Optional[EventType[[], BASE_STATE]] = None,
  329. on_click: Optional[EventType[[], BASE_STATE]] = None,
  330. on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
  331. on_double_click: Optional[EventType[[], BASE_STATE]] = None,
  332. on_focus: Optional[EventType[[], BASE_STATE]] = None,
  333. on_mount: Optional[EventType[[], BASE_STATE]] = None,
  334. on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
  335. on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
  336. on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
  337. on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
  338. on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
  339. on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
  340. on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
  341. on_scroll: Optional[EventType[[], BASE_STATE]] = None,
  342. on_unmount: Optional[EventType[[], BASE_STATE]] = None,
  343. **props,
  344. ) -> "OrderedList":
  345. """Create an ordered list component.
  346. Args:
  347. *children: The children of the component.
  348. list_style_type: The style of the list. Default to "none".
  349. items: A list of items to add to the list.
  350. reversed: Reverses the order of the list.
  351. start: Specifies the start value of the first list item in an ordered list.
  352. type: Specifies the kind of marker to use in the list (letters or numbers).
  353. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  354. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  355. content_editable: Indicates whether the element's content is editable.
  356. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  357. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  358. draggable: Defines whether the element can be dragged.
  359. enter_key_hint: Hints what media types the media element is able to play.
  360. hidden: Defines whether the element is hidden.
  361. input_mode: Defines the type of the element.
  362. item_prop: Defines the name of the element for metadata purposes.
  363. lang: Defines the language used in the element.
  364. role: Defines the role of the element.
  365. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  366. spell_check: Defines whether the element may be checked for spelling errors.
  367. tab_index: Defines the position of the current element in the tabbing order.
  368. title: Defines a tooltip for the element.
  369. style: The style of the component.
  370. key: A unique key for the component.
  371. id: The id for the component.
  372. class_name: The class name for the component.
  373. autofocus: Whether the component should take the focus once the page is loaded
  374. custom_attrs: custom attribute
  375. **props: The properties of the component.
  376. Returns:
  377. The list component.
  378. """
  379. ...
  380. class ListItem(Li, MarkdownComponentMap):
  381. @overload
  382. @classmethod
  383. def create( # type: ignore
  384. cls,
  385. *children,
  386. access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  387. auto_capitalize: Optional[
  388. Union[Var[Union[bool, int, str]], bool, int, str]
  389. ] = None,
  390. content_editable: Optional[
  391. Union[Var[Union[bool, int, str]], bool, int, str]
  392. ] = None,
  393. context_menu: Optional[
  394. Union[Var[Union[bool, int, str]], bool, int, str]
  395. ] = None,
  396. dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  397. draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  398. enter_key_hint: Optional[
  399. Union[Var[Union[bool, int, str]], bool, int, str]
  400. ] = None,
  401. hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  402. input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  403. item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  404. lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  405. role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  406. slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  407. spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  408. tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  409. title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  410. style: Optional[Style] = None,
  411. key: Optional[Any] = None,
  412. id: Optional[Any] = None,
  413. class_name: Optional[Any] = None,
  414. autofocus: Optional[bool] = None,
  415. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  416. on_blur: Optional[EventType[[], BASE_STATE]] = None,
  417. on_click: Optional[EventType[[], BASE_STATE]] = None,
  418. on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
  419. on_double_click: Optional[EventType[[], BASE_STATE]] = None,
  420. on_focus: Optional[EventType[[], BASE_STATE]] = None,
  421. on_mount: Optional[EventType[[], BASE_STATE]] = None,
  422. on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
  423. on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
  424. on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
  425. on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
  426. on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
  427. on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
  428. on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
  429. on_scroll: Optional[EventType[[], BASE_STATE]] = None,
  430. on_unmount: Optional[EventType[[], BASE_STATE]] = None,
  431. **props,
  432. ) -> "ListItem":
  433. """Create a list item component.
  434. Args:
  435. *children: The children of the component.
  436. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  437. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  438. content_editable: Indicates whether the element's content is editable.
  439. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  440. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  441. draggable: Defines whether the element can be dragged.
  442. enter_key_hint: Hints what media types the media element is able to play.
  443. hidden: Defines whether the element is hidden.
  444. input_mode: Defines the type of the element.
  445. item_prop: Defines the name of the element for metadata purposes.
  446. lang: Defines the language used in the element.
  447. role: Defines the role of the element.
  448. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  449. spell_check: Defines whether the element may be checked for spelling errors.
  450. tab_index: Defines the position of the current element in the tabbing order.
  451. title: Defines a tooltip for the element.
  452. style: The style of the component.
  453. key: A unique key for the component.
  454. id: The id for the component.
  455. class_name: The class name for the component.
  456. autofocus: Whether the component should take the focus once the page is loaded
  457. custom_attrs: custom attribute
  458. **props: The properties of the component.
  459. Returns:
  460. The list item component.
  461. """
  462. ...
  463. class List(ComponentNamespace):
  464. item = staticmethod(ListItem.create)
  465. ordered = staticmethod(OrderedList.create)
  466. unordered = staticmethod(UnorderedList.create)
  467. @staticmethod
  468. def __call__(
  469. *children,
  470. list_style_type: Optional[
  471. Union[
  472. Literal[
  473. "armenian",
  474. "decimal",
  475. "decimal-leading-zero",
  476. "georgian",
  477. "hiragana",
  478. "katakana",
  479. "lower-alpha",
  480. "lower-greek",
  481. "lower-latin",
  482. "lower-roman",
  483. "none",
  484. "upper-alpha",
  485. "upper-latin",
  486. "upper-roman",
  487. ],
  488. Literal["circle", "disc", "none", "square"],
  489. Var[
  490. Union[
  491. Literal[
  492. "armenian",
  493. "decimal",
  494. "decimal-leading-zero",
  495. "georgian",
  496. "hiragana",
  497. "katakana",
  498. "lower-alpha",
  499. "lower-greek",
  500. "lower-latin",
  501. "lower-roman",
  502. "none",
  503. "upper-alpha",
  504. "upper-latin",
  505. "upper-roman",
  506. ],
  507. Literal["circle", "disc", "none", "square"],
  508. ]
  509. ],
  510. ]
  511. ] = None,
  512. items: Optional[Union[Iterable, Var[Iterable]]] = None,
  513. style: Optional[Style] = None,
  514. key: Optional[Any] = None,
  515. id: Optional[Any] = None,
  516. class_name: Optional[Any] = None,
  517. autofocus: Optional[bool] = None,
  518. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  519. on_blur: Optional[EventType[[], BASE_STATE]] = None,
  520. on_click: Optional[EventType[[], BASE_STATE]] = None,
  521. on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
  522. on_double_click: Optional[EventType[[], BASE_STATE]] = None,
  523. on_focus: Optional[EventType[[], BASE_STATE]] = None,
  524. on_mount: Optional[EventType[[], BASE_STATE]] = None,
  525. on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
  526. on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
  527. on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
  528. on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
  529. on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
  530. on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
  531. on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
  532. on_scroll: Optional[EventType[[], BASE_STATE]] = None,
  533. on_unmount: Optional[EventType[[], BASE_STATE]] = None,
  534. **props,
  535. ) -> "BaseList":
  536. """Create a list component.
  537. Args:
  538. *children: The children of the component.
  539. list_style_type: The style of the list. Default to "none".
  540. items: A list of items to add to the list.
  541. style: The style of the component.
  542. key: A unique key for the component.
  543. id: The id for the component.
  544. class_name: The class name for the component.
  545. autofocus: Whether the component should take the focus once the page is loaded
  546. custom_attrs: custom attribute
  547. **props: The properties of the component.
  548. Returns:
  549. The list component.
  550. """
  551. ...
  552. list_ns = List()
  553. list_item = list_ns.item
  554. ordered_list = list_ns.ordered
  555. unordered_list = list_ns.unordered