base.pyi 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599
  1. """Stub file for reflex/components/radix/themes/base.py"""
  2. # ------------------- DO NOT EDIT ----------------------
  3. # This file was generated by `reflex/utils/pyi_generator.py`!
  4. # ------------------------------------------------------
  5. from typing import Any, Literal, Optional, overload
  6. from reflex.components import Component
  7. from reflex.components.core.breakpoints import Breakpoints
  8. from reflex.event import EventType
  9. from reflex.style import Style
  10. from reflex.utils.imports import ImportDict
  11. from reflex.vars.base import Var
  12. LiteralAlign = Literal["start", "center", "end", "baseline", "stretch"]
  13. LiteralJustify = Literal["start", "center", "end", "between"]
  14. LiteralSpacing = Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
  15. LiteralVariant = Literal["classic", "solid", "soft", "surface", "outline", "ghost"]
  16. LiteralAppearance = Literal["inherit", "light", "dark"]
  17. LiteralGrayColor = Literal["gray", "mauve", "slate", "sage", "olive", "sand", "auto"]
  18. LiteralPanelBackground = Literal["solid", "translucent"]
  19. LiteralRadius = Literal["none", "small", "medium", "large", "full"]
  20. LiteralScaling = Literal["90%", "95%", "100%", "105%", "110%"]
  21. LiteralAccentColor = Literal[
  22. "tomato",
  23. "red",
  24. "ruby",
  25. "crimson",
  26. "pink",
  27. "plum",
  28. "purple",
  29. "violet",
  30. "iris",
  31. "indigo",
  32. "blue",
  33. "cyan",
  34. "teal",
  35. "jade",
  36. "green",
  37. "grass",
  38. "brown",
  39. "orange",
  40. "sky",
  41. "mint",
  42. "lime",
  43. "yellow",
  44. "amber",
  45. "gold",
  46. "bronze",
  47. "gray",
  48. ]
  49. class CommonMarginProps(Component):
  50. @overload
  51. @classmethod
  52. def create( # type: ignore
  53. cls,
  54. *children,
  55. m: Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
  56. | Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
  57. | None = None,
  58. mx: Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
  59. | Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
  60. | None = None,
  61. my: Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
  62. | Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
  63. | None = None,
  64. mt: Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
  65. | Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
  66. | None = None,
  67. mr: Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
  68. | Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
  69. | None = None,
  70. mb: Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
  71. | Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
  72. | None = None,
  73. ml: Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
  74. | Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
  75. | None = None,
  76. style: Style | None = None,
  77. key: Any | None = None,
  78. id: Any | None = None,
  79. class_name: Any | None = None,
  80. autofocus: bool | None = None,
  81. custom_attrs: dict[str, Var | Any] | None = None,
  82. on_blur: Optional[EventType[()]] = None,
  83. on_click: Optional[EventType[()]] = None,
  84. on_context_menu: Optional[EventType[()]] = None,
  85. on_double_click: Optional[EventType[()]] = None,
  86. on_focus: Optional[EventType[()]] = None,
  87. on_mount: Optional[EventType[()]] = None,
  88. on_mouse_down: Optional[EventType[()]] = None,
  89. on_mouse_enter: Optional[EventType[()]] = None,
  90. on_mouse_leave: Optional[EventType[()]] = None,
  91. on_mouse_move: Optional[EventType[()]] = None,
  92. on_mouse_out: Optional[EventType[()]] = None,
  93. on_mouse_over: Optional[EventType[()]] = None,
  94. on_mouse_up: Optional[EventType[()]] = None,
  95. on_scroll: Optional[EventType[()]] = None,
  96. on_unmount: Optional[EventType[()]] = None,
  97. **props,
  98. ) -> "CommonMarginProps":
  99. """Create the component.
  100. Args:
  101. *children: The children of the component.
  102. m: Margin: "0" - "9"
  103. mx: Margin horizontal: "0" - "9"
  104. my: Margin vertical: "0" - "9"
  105. mt: Margin top: "0" - "9"
  106. mr: Margin right: "0" - "9"
  107. mb: Margin bottom: "0" - "9"
  108. ml: Margin left: "0" - "9"
  109. style: The style of the component.
  110. key: A unique key for the component.
  111. id: The id for the component.
  112. class_name: The class name for the component.
  113. autofocus: Whether the component should take the focus once the page is loaded
  114. custom_attrs: custom attribute
  115. **props: The props of the component.
  116. Returns:
  117. The component.
  118. """
  119. ...
  120. class CommonPaddingProps(Component):
  121. @overload
  122. @classmethod
  123. def create( # type: ignore
  124. cls,
  125. *children,
  126. p: Breakpoints[str, Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
  127. | Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
  128. | Var[
  129. Breakpoints[str, Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
  130. | Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
  131. ]
  132. | None = None,
  133. px: Breakpoints[str, Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
  134. | Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
  135. | Var[
  136. Breakpoints[str, Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
  137. | Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
  138. ]
  139. | None = None,
  140. py: Breakpoints[str, Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
  141. | Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
  142. | Var[
  143. Breakpoints[str, Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
  144. | Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
  145. ]
  146. | None = None,
  147. pt: Breakpoints[str, Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
  148. | Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
  149. | Var[
  150. Breakpoints[str, Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
  151. | Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
  152. ]
  153. | None = None,
  154. pr: Breakpoints[str, Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
  155. | Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
  156. | Var[
  157. Breakpoints[str, Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
  158. | Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
  159. ]
  160. | None = None,
  161. pb: Breakpoints[str, Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
  162. | Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
  163. | Var[
  164. Breakpoints[str, Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
  165. | Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
  166. ]
  167. | None = None,
  168. pl: Breakpoints[str, Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
  169. | Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
  170. | Var[
  171. Breakpoints[str, Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
  172. | Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
  173. ]
  174. | None = None,
  175. style: Style | None = None,
  176. key: Any | None = None,
  177. id: Any | None = None,
  178. class_name: Any | None = None,
  179. autofocus: bool | None = None,
  180. custom_attrs: dict[str, Var | Any] | None = None,
  181. on_blur: Optional[EventType[()]] = None,
  182. on_click: Optional[EventType[()]] = None,
  183. on_context_menu: Optional[EventType[()]] = None,
  184. on_double_click: Optional[EventType[()]] = None,
  185. on_focus: Optional[EventType[()]] = None,
  186. on_mount: Optional[EventType[()]] = None,
  187. on_mouse_down: Optional[EventType[()]] = None,
  188. on_mouse_enter: Optional[EventType[()]] = None,
  189. on_mouse_leave: Optional[EventType[()]] = None,
  190. on_mouse_move: Optional[EventType[()]] = None,
  191. on_mouse_out: Optional[EventType[()]] = None,
  192. on_mouse_over: Optional[EventType[()]] = None,
  193. on_mouse_up: Optional[EventType[()]] = None,
  194. on_scroll: Optional[EventType[()]] = None,
  195. on_unmount: Optional[EventType[()]] = None,
  196. **props,
  197. ) -> "CommonPaddingProps":
  198. """Create the component.
  199. Args:
  200. *children: The children of the component.
  201. p: Padding: "0" - "9"
  202. px: Padding horizontal: "0" - "9"
  203. py: Padding vertical: "0" - "9"
  204. pt: Padding top: "0" - "9"
  205. pr: Padding right: "0" - "9"
  206. pb: Padding bottom: "0" - "9"
  207. pl: Padding left: "0" - "9"
  208. style: The style of the component.
  209. key: A unique key for the component.
  210. id: The id for the component.
  211. class_name: The class name for the component.
  212. autofocus: Whether the component should take the focus once the page is loaded
  213. custom_attrs: custom attribute
  214. **props: The props of the component.
  215. Returns:
  216. The component.
  217. """
  218. ...
  219. class RadixLoadingProp(Component):
  220. @overload
  221. @classmethod
  222. def create( # type: ignore
  223. cls,
  224. *children,
  225. loading: Var[bool] | bool | None = None,
  226. style: Style | None = None,
  227. key: Any | None = None,
  228. id: Any | None = None,
  229. class_name: Any | None = None,
  230. autofocus: bool | None = None,
  231. custom_attrs: dict[str, Var | Any] | None = None,
  232. on_blur: Optional[EventType[()]] = None,
  233. on_click: Optional[EventType[()]] = None,
  234. on_context_menu: Optional[EventType[()]] = None,
  235. on_double_click: Optional[EventType[()]] = None,
  236. on_focus: Optional[EventType[()]] = None,
  237. on_mount: Optional[EventType[()]] = None,
  238. on_mouse_down: Optional[EventType[()]] = None,
  239. on_mouse_enter: Optional[EventType[()]] = None,
  240. on_mouse_leave: Optional[EventType[()]] = None,
  241. on_mouse_move: Optional[EventType[()]] = None,
  242. on_mouse_out: Optional[EventType[()]] = None,
  243. on_mouse_over: Optional[EventType[()]] = None,
  244. on_mouse_up: Optional[EventType[()]] = None,
  245. on_scroll: Optional[EventType[()]] = None,
  246. on_unmount: Optional[EventType[()]] = None,
  247. **props,
  248. ) -> "RadixLoadingProp":
  249. """Create the component.
  250. Args:
  251. *children: The children of the component.
  252. loading: If set, show an rx.spinner instead of the component children.
  253. style: The style of the component.
  254. key: A unique key for the component.
  255. id: The id for the component.
  256. class_name: The class name for the component.
  257. autofocus: Whether the component should take the focus once the page is loaded
  258. custom_attrs: custom attribute
  259. **props: The props of the component.
  260. Returns:
  261. The component.
  262. """
  263. ...
  264. class RadixThemesComponent(Component):
  265. @overload
  266. @classmethod
  267. def create( # type: ignore
  268. cls,
  269. *children,
  270. style: Style | None = None,
  271. key: Any | None = None,
  272. id: Any | None = None,
  273. class_name: Any | None = None,
  274. autofocus: bool | None = None,
  275. custom_attrs: dict[str, Var | Any] | None = None,
  276. on_blur: Optional[EventType[()]] = None,
  277. on_click: Optional[EventType[()]] = None,
  278. on_context_menu: Optional[EventType[()]] = None,
  279. on_double_click: Optional[EventType[()]] = None,
  280. on_focus: Optional[EventType[()]] = None,
  281. on_mount: Optional[EventType[()]] = None,
  282. on_mouse_down: Optional[EventType[()]] = None,
  283. on_mouse_enter: Optional[EventType[()]] = None,
  284. on_mouse_leave: Optional[EventType[()]] = None,
  285. on_mouse_move: Optional[EventType[()]] = None,
  286. on_mouse_out: Optional[EventType[()]] = None,
  287. on_mouse_over: Optional[EventType[()]] = None,
  288. on_mouse_up: Optional[EventType[()]] = None,
  289. on_scroll: Optional[EventType[()]] = None,
  290. on_unmount: Optional[EventType[()]] = None,
  291. **props,
  292. ) -> "RadixThemesComponent":
  293. """Create a new component instance.
  294. Will prepend "RadixThemes" to the component tag to avoid conflicts with
  295. other UI libraries for common names, like Text and Button.
  296. Args:
  297. *children: Child components.
  298. style: The style of the component.
  299. key: A unique key for the component.
  300. id: The id for the component.
  301. class_name: The class name for the component.
  302. autofocus: Whether the component should take the focus once the page is loaded
  303. custom_attrs: custom attribute
  304. **props: Component properties.
  305. Returns:
  306. A new component instance.
  307. """
  308. ...
  309. class RadixThemesTriggerComponent(RadixThemesComponent):
  310. @overload
  311. @classmethod
  312. def create( # type: ignore
  313. cls,
  314. *children,
  315. style: Style | None = None,
  316. key: Any | None = None,
  317. id: Any | None = None,
  318. class_name: Any | None = None,
  319. autofocus: bool | None = None,
  320. custom_attrs: dict[str, Var | Any] | None = None,
  321. on_blur: Optional[EventType[()]] = None,
  322. on_click: Optional[EventType[()]] = None,
  323. on_context_menu: Optional[EventType[()]] = None,
  324. on_double_click: Optional[EventType[()]] = None,
  325. on_focus: Optional[EventType[()]] = None,
  326. on_mount: Optional[EventType[()]] = None,
  327. on_mouse_down: Optional[EventType[()]] = None,
  328. on_mouse_enter: Optional[EventType[()]] = None,
  329. on_mouse_leave: Optional[EventType[()]] = None,
  330. on_mouse_move: Optional[EventType[()]] = None,
  331. on_mouse_out: Optional[EventType[()]] = None,
  332. on_mouse_over: Optional[EventType[()]] = None,
  333. on_mouse_up: Optional[EventType[()]] = None,
  334. on_scroll: Optional[EventType[()]] = None,
  335. on_unmount: Optional[EventType[()]] = None,
  336. **props,
  337. ) -> "RadixThemesTriggerComponent":
  338. """Create a new RadixThemesTriggerComponent instance.
  339. Args:
  340. children: The children of the component.
  341. props: The properties of the component.
  342. Returns:
  343. The new RadixThemesTriggerComponent instance.
  344. """
  345. ...
  346. class Theme(RadixThemesComponent):
  347. @overload
  348. @classmethod
  349. def create( # type: ignore
  350. cls,
  351. *children,
  352. color_mode: Literal["dark", "inherit", "light"] | None = None,
  353. theme_panel: bool | None = False,
  354. has_background: Var[bool] | bool | None = None,
  355. appearance: Literal["dark", "inherit", "light"]
  356. | Var[Literal["dark", "inherit", "light"]]
  357. | None = None,
  358. accent_color: Literal[
  359. "amber",
  360. "blue",
  361. "bronze",
  362. "brown",
  363. "crimson",
  364. "cyan",
  365. "gold",
  366. "grass",
  367. "gray",
  368. "green",
  369. "indigo",
  370. "iris",
  371. "jade",
  372. "lime",
  373. "mint",
  374. "orange",
  375. "pink",
  376. "plum",
  377. "purple",
  378. "red",
  379. "ruby",
  380. "sky",
  381. "teal",
  382. "tomato",
  383. "violet",
  384. "yellow",
  385. ]
  386. | Var[
  387. Literal[
  388. "amber",
  389. "blue",
  390. "bronze",
  391. "brown",
  392. "crimson",
  393. "cyan",
  394. "gold",
  395. "grass",
  396. "gray",
  397. "green",
  398. "indigo",
  399. "iris",
  400. "jade",
  401. "lime",
  402. "mint",
  403. "orange",
  404. "pink",
  405. "plum",
  406. "purple",
  407. "red",
  408. "ruby",
  409. "sky",
  410. "teal",
  411. "tomato",
  412. "violet",
  413. "yellow",
  414. ]
  415. ]
  416. | None = None,
  417. gray_color: Literal["auto", "gray", "mauve", "olive", "sage", "sand", "slate"]
  418. | Var[Literal["auto", "gray", "mauve", "olive", "sage", "sand", "slate"]]
  419. | None = None,
  420. panel_background: Literal["solid", "translucent"]
  421. | Var[Literal["solid", "translucent"]]
  422. | None = None,
  423. radius: Literal["full", "large", "medium", "none", "small"]
  424. | Var[Literal["full", "large", "medium", "none", "small"]]
  425. | None = None,
  426. scaling: Literal["100%", "105%", "110%", "90%", "95%"]
  427. | Var[Literal["100%", "105%", "110%", "90%", "95%"]]
  428. | None = None,
  429. style: Style | None = None,
  430. key: Any | None = None,
  431. id: Any | None = None,
  432. class_name: Any | None = None,
  433. autofocus: bool | None = None,
  434. custom_attrs: dict[str, Var | Any] | None = None,
  435. on_blur: Optional[EventType[()]] = None,
  436. on_click: Optional[EventType[()]] = None,
  437. on_context_menu: Optional[EventType[()]] = None,
  438. on_double_click: Optional[EventType[()]] = None,
  439. on_focus: Optional[EventType[()]] = None,
  440. on_mount: Optional[EventType[()]] = None,
  441. on_mouse_down: Optional[EventType[()]] = None,
  442. on_mouse_enter: Optional[EventType[()]] = None,
  443. on_mouse_leave: Optional[EventType[()]] = None,
  444. on_mouse_move: Optional[EventType[()]] = None,
  445. on_mouse_out: Optional[EventType[()]] = None,
  446. on_mouse_over: Optional[EventType[()]] = None,
  447. on_mouse_up: Optional[EventType[()]] = None,
  448. on_scroll: Optional[EventType[()]] = None,
  449. on_unmount: Optional[EventType[()]] = None,
  450. **props,
  451. ) -> "Theme":
  452. """Create a new Radix Theme specification.
  453. Args:
  454. *children: Child components.
  455. color_mode: Map to appearance prop.
  456. theme_panel: Whether to include a panel for editing the theme.
  457. has_background: Whether to apply the themes background color to the theme node. Defaults to True.
  458. appearance: Override light or dark mode theme: "inherit" | "light" | "dark". Defaults to "inherit".
  459. accent_color: The color used for default buttons, typography, backgrounds, etc
  460. gray_color: The shade of gray, defaults to "auto".
  461. panel_background: Whether panel backgrounds are translucent: "solid" | "translucent" (default)
  462. radius: Element border radius: "none" | "small" | "medium" | "large" | "full". Defaults to "medium".
  463. scaling: Scale of all theme items: "90%" | "95%" | "100%" | "105%" | "110%". Defaults to "100%"
  464. style: The style of the component.
  465. key: A unique key for the component.
  466. id: The id for the component.
  467. class_name: The class name for the component.
  468. autofocus: Whether the component should take the focus once the page is loaded
  469. custom_attrs: custom attribute
  470. **props: Component properties.
  471. Returns:
  472. A new component instance.
  473. """
  474. ...
  475. def add_imports(self) -> ImportDict | list[ImportDict]: ...
  476. class ThemePanel(RadixThemesComponent):
  477. def add_imports(self) -> dict[str, str]: ...
  478. @overload
  479. @classmethod
  480. def create( # type: ignore
  481. cls,
  482. *children,
  483. default_open: Var[bool] | bool | None = None,
  484. style: Style | None = None,
  485. key: Any | None = None,
  486. id: Any | None = None,
  487. class_name: Any | None = None,
  488. autofocus: bool | None = None,
  489. custom_attrs: dict[str, Var | Any] | None = None,
  490. on_blur: Optional[EventType[()]] = None,
  491. on_click: Optional[EventType[()]] = None,
  492. on_context_menu: Optional[EventType[()]] = None,
  493. on_double_click: Optional[EventType[()]] = None,
  494. on_focus: Optional[EventType[()]] = None,
  495. on_mount: Optional[EventType[()]] = None,
  496. on_mouse_down: Optional[EventType[()]] = None,
  497. on_mouse_enter: Optional[EventType[()]] = None,
  498. on_mouse_leave: Optional[EventType[()]] = None,
  499. on_mouse_move: Optional[EventType[()]] = None,
  500. on_mouse_out: Optional[EventType[()]] = None,
  501. on_mouse_over: Optional[EventType[()]] = None,
  502. on_mouse_up: Optional[EventType[()]] = None,
  503. on_scroll: Optional[EventType[()]] = None,
  504. on_unmount: Optional[EventType[()]] = None,
  505. **props,
  506. ) -> "ThemePanel":
  507. """Create a new component instance.
  508. Will prepend "RadixThemes" to the component tag to avoid conflicts with
  509. other UI libraries for common names, like Text and Button.
  510. Args:
  511. *children: Child components.
  512. default_open: Whether the panel is open. Defaults to False.
  513. style: The style of the component.
  514. key: A unique key for the component.
  515. id: The id for the component.
  516. class_name: The class name for the component.
  517. autofocus: Whether the component should take the focus once the page is loaded
  518. custom_attrs: custom attribute
  519. **props: Component properties.
  520. Returns:
  521. A new component instance.
  522. """
  523. ...
  524. class RadixThemesColorModeProvider(Component):
  525. @overload
  526. @classmethod
  527. def create( # type: ignore
  528. cls,
  529. *children,
  530. style: Style | None = None,
  531. key: Any | None = None,
  532. id: Any | None = None,
  533. class_name: Any | None = None,
  534. autofocus: bool | None = None,
  535. custom_attrs: dict[str, Var | Any] | None = None,
  536. on_blur: Optional[EventType[()]] = None,
  537. on_click: Optional[EventType[()]] = None,
  538. on_context_menu: Optional[EventType[()]] = None,
  539. on_double_click: Optional[EventType[()]] = None,
  540. on_focus: Optional[EventType[()]] = None,
  541. on_mount: Optional[EventType[()]] = None,
  542. on_mouse_down: Optional[EventType[()]] = None,
  543. on_mouse_enter: Optional[EventType[()]] = None,
  544. on_mouse_leave: Optional[EventType[()]] = None,
  545. on_mouse_move: Optional[EventType[()]] = None,
  546. on_mouse_out: Optional[EventType[()]] = None,
  547. on_mouse_over: Optional[EventType[()]] = None,
  548. on_mouse_up: Optional[EventType[()]] = None,
  549. on_scroll: Optional[EventType[()]] = None,
  550. on_unmount: Optional[EventType[()]] = None,
  551. **props,
  552. ) -> "RadixThemesColorModeProvider":
  553. """Create the component.
  554. Args:
  555. *children: The children of the component.
  556. style: The style of the component.
  557. key: A unique key for the component.
  558. id: The id for the component.
  559. class_name: The class name for the component.
  560. autofocus: Whether the component should take the focus once the page is loaded
  561. custom_attrs: custom attribute
  562. **props: The props of the component.
  563. Returns:
  564. The component.
  565. """
  566. ...
  567. theme = Theme.create
  568. theme_panel = ThemePanel.create