accordion.pyi 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802
  1. """Stub file for reflex/components/radix/primitives/accordion.py"""
  2. # ------------------- DO NOT EDIT ----------------------
  3. # This file was generated by `reflex/utils/pyi_generator.py`!
  4. # ------------------------------------------------------
  5. from typing import Any, Literal, Optional, Sequence, overload
  6. from reflex.components.component import Component, ComponentNamespace
  7. from reflex.components.lucide.icon import Icon
  8. from reflex.components.radix.primitives.base import RadixPrimitiveComponent
  9. from reflex.event import EventType
  10. from reflex.style import Style
  11. from reflex.vars.base import Var
  12. LiteralAccordionType = Literal["single", "multiple"]
  13. LiteralAccordionDir = Literal["ltr", "rtl"]
  14. LiteralAccordionOrientation = Literal["vertical", "horizontal"]
  15. LiteralAccordionVariant = Literal["classic", "soft", "surface", "outline", "ghost"]
  16. DEFAULT_ANIMATION_DURATION = 250
  17. DEFAULT_ANIMATION_EASING = "cubic-bezier(0.87, 0, 0.13, 1)"
  18. class AccordionComponent(RadixPrimitiveComponent):
  19. def add_style(self): ...
  20. @overload
  21. @classmethod
  22. def create( # type: ignore
  23. cls,
  24. *children,
  25. color_scheme: Literal[
  26. "amber",
  27. "blue",
  28. "bronze",
  29. "brown",
  30. "crimson",
  31. "cyan",
  32. "gold",
  33. "grass",
  34. "gray",
  35. "green",
  36. "indigo",
  37. "iris",
  38. "jade",
  39. "lime",
  40. "mint",
  41. "orange",
  42. "pink",
  43. "plum",
  44. "purple",
  45. "red",
  46. "ruby",
  47. "sky",
  48. "teal",
  49. "tomato",
  50. "violet",
  51. "yellow",
  52. ]
  53. | Var[
  54. Literal[
  55. "amber",
  56. "blue",
  57. "bronze",
  58. "brown",
  59. "crimson",
  60. "cyan",
  61. "gold",
  62. "grass",
  63. "gray",
  64. "green",
  65. "indigo",
  66. "iris",
  67. "jade",
  68. "lime",
  69. "mint",
  70. "orange",
  71. "pink",
  72. "plum",
  73. "purple",
  74. "red",
  75. "ruby",
  76. "sky",
  77. "teal",
  78. "tomato",
  79. "violet",
  80. "yellow",
  81. ]
  82. ]
  83. | None = None,
  84. variant: Literal["classic", "ghost", "outline", "soft", "surface"]
  85. | Var[Literal["classic", "ghost", "outline", "soft", "surface"]]
  86. | None = None,
  87. as_child: Var[bool] | bool | None = None,
  88. style: Style | None = None,
  89. key: Any | None = None,
  90. id: Any | None = None,
  91. class_name: Any | None = None,
  92. autofocus: bool | None = None,
  93. custom_attrs: dict[str, Var | Any] | None = None,
  94. on_blur: Optional[EventType[()]] = None,
  95. on_click: Optional[EventType[()]] = None,
  96. on_context_menu: Optional[EventType[()]] = None,
  97. on_double_click: Optional[EventType[()]] = None,
  98. on_focus: Optional[EventType[()]] = None,
  99. on_mount: Optional[EventType[()]] = None,
  100. on_mouse_down: Optional[EventType[()]] = None,
  101. on_mouse_enter: Optional[EventType[()]] = None,
  102. on_mouse_leave: Optional[EventType[()]] = None,
  103. on_mouse_move: Optional[EventType[()]] = None,
  104. on_mouse_out: Optional[EventType[()]] = None,
  105. on_mouse_over: Optional[EventType[()]] = None,
  106. on_mouse_up: Optional[EventType[()]] = None,
  107. on_scroll: Optional[EventType[()]] = None,
  108. on_unmount: Optional[EventType[()]] = None,
  109. **props,
  110. ) -> "AccordionComponent":
  111. """Create the component.
  112. Args:
  113. *children: The children of the component.
  114. color_scheme: The color scheme of the component.
  115. variant: The variant of the component.
  116. as_child: Change the default rendered element for the one passed as a child.
  117. style: The style of the component.
  118. key: A unique key for the component.
  119. id: The id for the component.
  120. class_name: The class name for the component.
  121. autofocus: Whether the component should take the focus once the page is loaded
  122. custom_attrs: custom attribute
  123. **props: The props of the component.
  124. Returns:
  125. The component.
  126. """
  127. ...
  128. def on_value_change(value: Var[str | list[str]]) -> tuple[Var[str | list[str]]]: ...
  129. class AccordionRoot(AccordionComponent):
  130. def add_style(self): ...
  131. @overload
  132. @classmethod
  133. def create( # type: ignore
  134. cls,
  135. *children,
  136. type: Literal["multiple", "single"]
  137. | Var[Literal["multiple", "single"]]
  138. | None = None,
  139. value: Sequence[str] | Var[Sequence[str] | str] | str | None = None,
  140. default_value: Sequence[str] | Var[Sequence[str] | str] | str | None = None,
  141. collapsible: Var[bool] | bool | None = None,
  142. disabled: Var[bool] | bool | None = None,
  143. dir: Literal["ltr", "rtl"] | Var[Literal["ltr", "rtl"]] | None = None,
  144. orientation: Literal["horizontal", "vertical"]
  145. | Var[Literal["horizontal", "vertical"]]
  146. | None = None,
  147. radius: Literal["full", "large", "medium", "none", "small"]
  148. | Var[Literal["full", "large", "medium", "none", "small"]]
  149. | None = None,
  150. duration: Var[int] | int | None = None,
  151. easing: Var[str] | str | None = None,
  152. show_dividers: Var[bool] | bool | None = None,
  153. color_scheme: Literal[
  154. "amber",
  155. "blue",
  156. "bronze",
  157. "brown",
  158. "crimson",
  159. "cyan",
  160. "gold",
  161. "grass",
  162. "gray",
  163. "green",
  164. "indigo",
  165. "iris",
  166. "jade",
  167. "lime",
  168. "mint",
  169. "orange",
  170. "pink",
  171. "plum",
  172. "purple",
  173. "red",
  174. "ruby",
  175. "sky",
  176. "teal",
  177. "tomato",
  178. "violet",
  179. "yellow",
  180. ]
  181. | Var[
  182. Literal[
  183. "amber",
  184. "blue",
  185. "bronze",
  186. "brown",
  187. "crimson",
  188. "cyan",
  189. "gold",
  190. "grass",
  191. "gray",
  192. "green",
  193. "indigo",
  194. "iris",
  195. "jade",
  196. "lime",
  197. "mint",
  198. "orange",
  199. "pink",
  200. "plum",
  201. "purple",
  202. "red",
  203. "ruby",
  204. "sky",
  205. "teal",
  206. "tomato",
  207. "violet",
  208. "yellow",
  209. ]
  210. ]
  211. | None = None,
  212. variant: Literal["classic", "ghost", "outline", "soft", "surface"]
  213. | Var[Literal["classic", "ghost", "outline", "soft", "surface"]]
  214. | None = None,
  215. as_child: Var[bool] | bool | None = None,
  216. style: Style | None = None,
  217. key: Any | None = None,
  218. id: Any | None = None,
  219. class_name: Any | None = None,
  220. autofocus: bool | None = None,
  221. custom_attrs: dict[str, Var | Any] | None = None,
  222. on_blur: Optional[EventType[()]] = None,
  223. on_click: Optional[EventType[()]] = None,
  224. on_context_menu: Optional[EventType[()]] = None,
  225. on_double_click: Optional[EventType[()]] = None,
  226. on_focus: Optional[EventType[()]] = None,
  227. on_mount: Optional[EventType[()]] = None,
  228. on_mouse_down: Optional[EventType[()]] = None,
  229. on_mouse_enter: Optional[EventType[()]] = None,
  230. on_mouse_leave: Optional[EventType[()]] = None,
  231. on_mouse_move: Optional[EventType[()]] = None,
  232. on_mouse_out: Optional[EventType[()]] = None,
  233. on_mouse_over: Optional[EventType[()]] = None,
  234. on_mouse_up: Optional[EventType[()]] = None,
  235. on_scroll: Optional[EventType[()]] = None,
  236. on_unmount: Optional[EventType[()]] = None,
  237. on_value_change: Optional[EventType[()] | EventType[str | list[str]]] = None,
  238. **props,
  239. ) -> "AccordionRoot":
  240. """Create the component.
  241. Args:
  242. *children: The children of the component.
  243. type: The type of accordion (single or multiple).
  244. value: The value of the item to expand.
  245. default_value: The default value of the item to expand.
  246. collapsible: Whether or not the accordion is collapsible.
  247. disabled: Whether or not the accordion is disabled.
  248. dir: The reading direction of the accordion when applicable.
  249. orientation: The orientation of the accordion.
  250. radius: The radius of the accordion corners.
  251. duration: The time in milliseconds to animate open and close
  252. easing: The easing function to use for the animation.
  253. show_dividers: Whether to show divider lines between items.
  254. on_value_change: Fired when the opened the accordions changes.
  255. color_scheme: The color scheme of the component.
  256. variant: The variant of the component.
  257. as_child: Change the default rendered element for the one passed as a child.
  258. style: The style of the component.
  259. key: A unique key for the component.
  260. id: The id for the component.
  261. class_name: The class name for the component.
  262. autofocus: Whether the component should take the focus once the page is loaded
  263. custom_attrs: custom attribute
  264. **props: The props of the component.
  265. Returns:
  266. The component.
  267. """
  268. ...
  269. class AccordionItem(AccordionComponent):
  270. @overload
  271. @classmethod
  272. def create( # type: ignore
  273. cls,
  274. *children,
  275. value: Var[str] | str | None = None,
  276. disabled: Var[bool] | bool | None = None,
  277. header: Component | Var[Component | str] | str | None = None,
  278. content: Component | Var[Component | str | None] | str | None = None,
  279. color_scheme: Literal[
  280. "amber",
  281. "blue",
  282. "bronze",
  283. "brown",
  284. "crimson",
  285. "cyan",
  286. "gold",
  287. "grass",
  288. "gray",
  289. "green",
  290. "indigo",
  291. "iris",
  292. "jade",
  293. "lime",
  294. "mint",
  295. "orange",
  296. "pink",
  297. "plum",
  298. "purple",
  299. "red",
  300. "ruby",
  301. "sky",
  302. "teal",
  303. "tomato",
  304. "violet",
  305. "yellow",
  306. ]
  307. | Var[
  308. Literal[
  309. "amber",
  310. "blue",
  311. "bronze",
  312. "brown",
  313. "crimson",
  314. "cyan",
  315. "gold",
  316. "grass",
  317. "gray",
  318. "green",
  319. "indigo",
  320. "iris",
  321. "jade",
  322. "lime",
  323. "mint",
  324. "orange",
  325. "pink",
  326. "plum",
  327. "purple",
  328. "red",
  329. "ruby",
  330. "sky",
  331. "teal",
  332. "tomato",
  333. "violet",
  334. "yellow",
  335. ]
  336. ]
  337. | None = None,
  338. variant: Literal["classic", "ghost", "outline", "soft", "surface"]
  339. | Var[Literal["classic", "ghost", "outline", "soft", "surface"]]
  340. | None = None,
  341. as_child: Var[bool] | bool | None = None,
  342. style: Style | None = None,
  343. key: Any | None = None,
  344. id: Any | None = None,
  345. class_name: Any | None = None,
  346. autofocus: bool | None = None,
  347. custom_attrs: dict[str, Var | Any] | None = None,
  348. on_blur: Optional[EventType[()]] = None,
  349. on_click: Optional[EventType[()]] = None,
  350. on_context_menu: Optional[EventType[()]] = None,
  351. on_double_click: Optional[EventType[()]] = None,
  352. on_focus: Optional[EventType[()]] = None,
  353. on_mount: Optional[EventType[()]] = None,
  354. on_mouse_down: Optional[EventType[()]] = None,
  355. on_mouse_enter: Optional[EventType[()]] = None,
  356. on_mouse_leave: Optional[EventType[()]] = None,
  357. on_mouse_move: Optional[EventType[()]] = None,
  358. on_mouse_out: Optional[EventType[()]] = None,
  359. on_mouse_over: Optional[EventType[()]] = None,
  360. on_mouse_up: Optional[EventType[()]] = None,
  361. on_scroll: Optional[EventType[()]] = None,
  362. on_unmount: Optional[EventType[()]] = None,
  363. **props,
  364. ) -> "AccordionItem":
  365. """Create an accordion item.
  366. Args:
  367. *children: The list of children to use if header and content are not provided.
  368. value: A unique identifier for the item.
  369. disabled: When true, prevents the user from interacting with the item.
  370. header: The header of the accordion item.
  371. content: The content of the accordion item.
  372. color_scheme: The color scheme of the component.
  373. variant: The variant of the component.
  374. as_child: Change the default rendered element for the one passed as a child.
  375. style: The style of the component.
  376. key: A unique key for the component.
  377. id: The id for the component.
  378. class_name: The class name for the component.
  379. autofocus: Whether the component should take the focus once the page is loaded
  380. custom_attrs: custom attribute
  381. **props: Additional properties to apply to the accordion item.
  382. Returns:
  383. The accordion item.
  384. """
  385. ...
  386. def add_style(self) -> dict[str, Any] | None: ...
  387. class AccordionHeader(AccordionComponent):
  388. @overload
  389. @classmethod
  390. def create( # type: ignore
  391. cls,
  392. *children,
  393. color_scheme: Literal[
  394. "amber",
  395. "blue",
  396. "bronze",
  397. "brown",
  398. "crimson",
  399. "cyan",
  400. "gold",
  401. "grass",
  402. "gray",
  403. "green",
  404. "indigo",
  405. "iris",
  406. "jade",
  407. "lime",
  408. "mint",
  409. "orange",
  410. "pink",
  411. "plum",
  412. "purple",
  413. "red",
  414. "ruby",
  415. "sky",
  416. "teal",
  417. "tomato",
  418. "violet",
  419. "yellow",
  420. ]
  421. | Var[
  422. Literal[
  423. "amber",
  424. "blue",
  425. "bronze",
  426. "brown",
  427. "crimson",
  428. "cyan",
  429. "gold",
  430. "grass",
  431. "gray",
  432. "green",
  433. "indigo",
  434. "iris",
  435. "jade",
  436. "lime",
  437. "mint",
  438. "orange",
  439. "pink",
  440. "plum",
  441. "purple",
  442. "red",
  443. "ruby",
  444. "sky",
  445. "teal",
  446. "tomato",
  447. "violet",
  448. "yellow",
  449. ]
  450. ]
  451. | None = None,
  452. variant: Literal["classic", "ghost", "outline", "soft", "surface"]
  453. | Var[Literal["classic", "ghost", "outline", "soft", "surface"]]
  454. | None = None,
  455. as_child: Var[bool] | bool | None = None,
  456. style: Style | None = None,
  457. key: Any | None = None,
  458. id: Any | None = None,
  459. class_name: Any | None = None,
  460. autofocus: bool | None = None,
  461. custom_attrs: dict[str, Var | Any] | None = None,
  462. on_blur: Optional[EventType[()]] = None,
  463. on_click: Optional[EventType[()]] = None,
  464. on_context_menu: Optional[EventType[()]] = None,
  465. on_double_click: Optional[EventType[()]] = None,
  466. on_focus: Optional[EventType[()]] = None,
  467. on_mount: Optional[EventType[()]] = None,
  468. on_mouse_down: Optional[EventType[()]] = None,
  469. on_mouse_enter: Optional[EventType[()]] = None,
  470. on_mouse_leave: Optional[EventType[()]] = None,
  471. on_mouse_move: Optional[EventType[()]] = None,
  472. on_mouse_out: Optional[EventType[()]] = None,
  473. on_mouse_over: Optional[EventType[()]] = None,
  474. on_mouse_up: Optional[EventType[()]] = None,
  475. on_scroll: Optional[EventType[()]] = None,
  476. on_unmount: Optional[EventType[()]] = None,
  477. **props,
  478. ) -> "AccordionHeader":
  479. """Create the Accordion header component.
  480. Args:
  481. *children: The children of the component.
  482. color_scheme: The color scheme of the component.
  483. variant: The variant of the component.
  484. as_child: Change the default rendered element for the one passed as a child.
  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 properties of the component.
  492. Returns:
  493. The Accordion header Component.
  494. """
  495. ...
  496. def add_style(self) -> dict[str, Any] | None: ...
  497. class AccordionTrigger(AccordionComponent):
  498. @overload
  499. @classmethod
  500. def create( # type: ignore
  501. cls,
  502. *children,
  503. color_scheme: Literal[
  504. "amber",
  505. "blue",
  506. "bronze",
  507. "brown",
  508. "crimson",
  509. "cyan",
  510. "gold",
  511. "grass",
  512. "gray",
  513. "green",
  514. "indigo",
  515. "iris",
  516. "jade",
  517. "lime",
  518. "mint",
  519. "orange",
  520. "pink",
  521. "plum",
  522. "purple",
  523. "red",
  524. "ruby",
  525. "sky",
  526. "teal",
  527. "tomato",
  528. "violet",
  529. "yellow",
  530. ]
  531. | Var[
  532. Literal[
  533. "amber",
  534. "blue",
  535. "bronze",
  536. "brown",
  537. "crimson",
  538. "cyan",
  539. "gold",
  540. "grass",
  541. "gray",
  542. "green",
  543. "indigo",
  544. "iris",
  545. "jade",
  546. "lime",
  547. "mint",
  548. "orange",
  549. "pink",
  550. "plum",
  551. "purple",
  552. "red",
  553. "ruby",
  554. "sky",
  555. "teal",
  556. "tomato",
  557. "violet",
  558. "yellow",
  559. ]
  560. ]
  561. | None = None,
  562. variant: Literal["classic", "ghost", "outline", "soft", "surface"]
  563. | Var[Literal["classic", "ghost", "outline", "soft", "surface"]]
  564. | None = None,
  565. as_child: Var[bool] | bool | None = None,
  566. style: Style | None = None,
  567. key: Any | None = None,
  568. id: Any | None = None,
  569. class_name: Any | None = None,
  570. autofocus: bool | None = None,
  571. custom_attrs: dict[str, Var | Any] | None = None,
  572. on_blur: Optional[EventType[()]] = None,
  573. on_click: Optional[EventType[()]] = None,
  574. on_context_menu: Optional[EventType[()]] = None,
  575. on_double_click: Optional[EventType[()]] = None,
  576. on_focus: Optional[EventType[()]] = None,
  577. on_mount: Optional[EventType[()]] = None,
  578. on_mouse_down: Optional[EventType[()]] = None,
  579. on_mouse_enter: Optional[EventType[()]] = None,
  580. on_mouse_leave: Optional[EventType[()]] = None,
  581. on_mouse_move: Optional[EventType[()]] = None,
  582. on_mouse_out: Optional[EventType[()]] = None,
  583. on_mouse_over: Optional[EventType[()]] = None,
  584. on_mouse_up: Optional[EventType[()]] = None,
  585. on_scroll: Optional[EventType[()]] = None,
  586. on_unmount: Optional[EventType[()]] = None,
  587. **props,
  588. ) -> "AccordionTrigger":
  589. """Create the Accordion trigger component.
  590. Args:
  591. *children: The children of the component.
  592. color_scheme: The color scheme of the component.
  593. variant: The variant of the component.
  594. as_child: Change the default rendered element for the one passed as a child.
  595. style: The style of the component.
  596. key: A unique key for the component.
  597. id: The id for the component.
  598. class_name: The class name for the component.
  599. autofocus: Whether the component should take the focus once the page is loaded
  600. custom_attrs: custom attribute
  601. **props: The properties of the component.
  602. Returns:
  603. The Accordion trigger Component.
  604. """
  605. ...
  606. def add_style(self) -> dict[str, Any] | None: ...
  607. class AccordionIcon(Icon):
  608. @overload
  609. @classmethod
  610. def create( # type: ignore
  611. cls,
  612. *children,
  613. size: Var[int] | int | None = None,
  614. style: Style | None = None,
  615. key: Any | None = None,
  616. id: Any | None = None,
  617. class_name: Any | None = None,
  618. autofocus: bool | None = None,
  619. custom_attrs: dict[str, Var | Any] | None = None,
  620. on_blur: Optional[EventType[()]] = None,
  621. on_click: Optional[EventType[()]] = None,
  622. on_context_menu: Optional[EventType[()]] = None,
  623. on_double_click: Optional[EventType[()]] = None,
  624. on_focus: Optional[EventType[()]] = None,
  625. on_mount: Optional[EventType[()]] = None,
  626. on_mouse_down: Optional[EventType[()]] = None,
  627. on_mouse_enter: Optional[EventType[()]] = None,
  628. on_mouse_leave: Optional[EventType[()]] = None,
  629. on_mouse_move: Optional[EventType[()]] = None,
  630. on_mouse_out: Optional[EventType[()]] = None,
  631. on_mouse_over: Optional[EventType[()]] = None,
  632. on_mouse_up: Optional[EventType[()]] = None,
  633. on_scroll: Optional[EventType[()]] = None,
  634. on_unmount: Optional[EventType[()]] = None,
  635. **props,
  636. ) -> "AccordionIcon":
  637. """Create the Accordion icon component.
  638. Args:
  639. *children: The children of the component.
  640. size: The size of the icon in pixels.
  641. style: The style of the component.
  642. key: A unique key for the component.
  643. id: The id for the component.
  644. class_name: The class name for the component.
  645. autofocus: Whether the component should take the focus once the page is loaded
  646. custom_attrs: custom attribute
  647. **props: The properties of the component.
  648. Returns:
  649. The Accordion icon Component.
  650. """
  651. ...
  652. class AccordionContent(AccordionComponent):
  653. def add_imports(self) -> dict: ...
  654. @overload
  655. @classmethod
  656. def create( # type: ignore
  657. cls,
  658. *children,
  659. color_scheme: Literal[
  660. "amber",
  661. "blue",
  662. "bronze",
  663. "brown",
  664. "crimson",
  665. "cyan",
  666. "gold",
  667. "grass",
  668. "gray",
  669. "green",
  670. "indigo",
  671. "iris",
  672. "jade",
  673. "lime",
  674. "mint",
  675. "orange",
  676. "pink",
  677. "plum",
  678. "purple",
  679. "red",
  680. "ruby",
  681. "sky",
  682. "teal",
  683. "tomato",
  684. "violet",
  685. "yellow",
  686. ]
  687. | Var[
  688. Literal[
  689. "amber",
  690. "blue",
  691. "bronze",
  692. "brown",
  693. "crimson",
  694. "cyan",
  695. "gold",
  696. "grass",
  697. "gray",
  698. "green",
  699. "indigo",
  700. "iris",
  701. "jade",
  702. "lime",
  703. "mint",
  704. "orange",
  705. "pink",
  706. "plum",
  707. "purple",
  708. "red",
  709. "ruby",
  710. "sky",
  711. "teal",
  712. "tomato",
  713. "violet",
  714. "yellow",
  715. ]
  716. ]
  717. | None = None,
  718. variant: Literal["classic", "ghost", "outline", "soft", "surface"]
  719. | Var[Literal["classic", "ghost", "outline", "soft", "surface"]]
  720. | None = None,
  721. as_child: Var[bool] | bool | None = None,
  722. style: Style | None = None,
  723. key: Any | None = None,
  724. id: Any | None = None,
  725. class_name: Any | None = None,
  726. autofocus: bool | None = None,
  727. custom_attrs: dict[str, Var | Any] | None = None,
  728. on_blur: Optional[EventType[()]] = None,
  729. on_click: Optional[EventType[()]] = None,
  730. on_context_menu: Optional[EventType[()]] = None,
  731. on_double_click: Optional[EventType[()]] = None,
  732. on_focus: Optional[EventType[()]] = None,
  733. on_mount: Optional[EventType[()]] = None,
  734. on_mouse_down: Optional[EventType[()]] = None,
  735. on_mouse_enter: Optional[EventType[()]] = None,
  736. on_mouse_leave: Optional[EventType[()]] = None,
  737. on_mouse_move: Optional[EventType[()]] = None,
  738. on_mouse_out: Optional[EventType[()]] = None,
  739. on_mouse_over: Optional[EventType[()]] = None,
  740. on_mouse_up: Optional[EventType[()]] = None,
  741. on_scroll: Optional[EventType[()]] = None,
  742. on_unmount: Optional[EventType[()]] = None,
  743. **props,
  744. ) -> "AccordionContent":
  745. """Create the Accordion content component.
  746. Args:
  747. *children: The children of the component.
  748. color_scheme: The color scheme of the component.
  749. variant: The variant of the component.
  750. as_child: Change the default rendered element for the one passed as a child.
  751. style: The style of the component.
  752. key: A unique key for the component.
  753. id: The id for the component.
  754. class_name: The class name for the component.
  755. autofocus: Whether the component should take the focus once the page is loaded
  756. custom_attrs: custom attribute
  757. **props: The properties of the component.
  758. Returns:
  759. The Accordion content Component.
  760. """
  761. ...
  762. def add_custom_code(self) -> list[str]: ...
  763. def add_style(self) -> dict[str, Any] | None: ...
  764. class Accordion(ComponentNamespace):
  765. content = staticmethod(AccordionContent.create)
  766. header = staticmethod(AccordionHeader.create)
  767. item = staticmethod(AccordionItem.create)
  768. icon = staticmethod(AccordionIcon.create)
  769. root = staticmethod(AccordionRoot.create)
  770. trigger = staticmethod(AccordionTrigger.create)
  771. accordion = Accordion()