layout.pyi 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877
  1. """Stub file for reflex/experimental/layout.py"""
  2. # ------------------- DO NOT EDIT ----------------------
  3. # This file was generated by `reflex/utils/pyi_generator.py`!
  4. # ------------------------------------------------------
  5. from typing import Any, Dict, List, Literal, Optional, Union, overload
  6. from reflex import color
  7. from reflex.components.base.fragment import Fragment
  8. from reflex.components.component import Component, ComponentNamespace, MemoizationLeaf
  9. from reflex.components.radix.primitives.drawer import DrawerRoot
  10. from reflex.components.radix.themes.layout.box import Box
  11. from reflex.event import EventType
  12. from reflex.state import ComponentState
  13. from reflex.style import Style
  14. from reflex.vars.base import Var
  15. class Sidebar(Box, MemoizationLeaf):
  16. @overload
  17. @classmethod
  18. def create( # type: ignore
  19. cls,
  20. *children,
  21. access_key: Optional[Union[Var[str], str]] = None,
  22. auto_capitalize: Optional[
  23. Union[
  24. Literal["characters", "none", "off", "on", "sentences", "words"],
  25. Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
  26. ]
  27. ] = None,
  28. content_editable: Optional[
  29. Union[
  30. Literal["inherit", "plaintext-only", False, True],
  31. Var[Literal["inherit", "plaintext-only", False, True]],
  32. ]
  33. ] = None,
  34. context_menu: Optional[Union[Var[str], str]] = None,
  35. dir: Optional[Union[Var[str], str]] = None,
  36. draggable: Optional[Union[Var[bool], bool]] = None,
  37. enter_key_hint: Optional[
  38. Union[
  39. Literal["done", "enter", "go", "next", "previous", "search", "send"],
  40. Var[
  41. Literal["done", "enter", "go", "next", "previous", "search", "send"]
  42. ],
  43. ]
  44. ] = None,
  45. hidden: Optional[Union[Var[bool], bool]] = None,
  46. input_mode: Optional[
  47. Union[
  48. Literal[
  49. "decimal",
  50. "email",
  51. "none",
  52. "numeric",
  53. "search",
  54. "tel",
  55. "text",
  56. "url",
  57. ],
  58. Var[
  59. Literal[
  60. "decimal",
  61. "email",
  62. "none",
  63. "numeric",
  64. "search",
  65. "tel",
  66. "text",
  67. "url",
  68. ]
  69. ],
  70. ]
  71. ] = None,
  72. item_prop: Optional[Union[Var[str], str]] = None,
  73. lang: Optional[Union[Var[str], str]] = None,
  74. role: Optional[
  75. Union[
  76. Literal[
  77. "alert",
  78. "alertdialog",
  79. "application",
  80. "article",
  81. "banner",
  82. "button",
  83. "cell",
  84. "checkbox",
  85. "columnheader",
  86. "combobox",
  87. "complementary",
  88. "contentinfo",
  89. "definition",
  90. "dialog",
  91. "directory",
  92. "document",
  93. "feed",
  94. "figure",
  95. "form",
  96. "grid",
  97. "gridcell",
  98. "group",
  99. "heading",
  100. "img",
  101. "link",
  102. "list",
  103. "listbox",
  104. "listitem",
  105. "log",
  106. "main",
  107. "marquee",
  108. "math",
  109. "menu",
  110. "menubar",
  111. "menuitem",
  112. "menuitemcheckbox",
  113. "menuitemradio",
  114. "navigation",
  115. "none",
  116. "note",
  117. "option",
  118. "presentation",
  119. "progressbar",
  120. "radio",
  121. "radiogroup",
  122. "region",
  123. "row",
  124. "rowgroup",
  125. "rowheader",
  126. "scrollbar",
  127. "search",
  128. "searchbox",
  129. "separator",
  130. "slider",
  131. "spinbutton",
  132. "status",
  133. "switch",
  134. "tab",
  135. "table",
  136. "tablist",
  137. "tabpanel",
  138. "term",
  139. "textbox",
  140. "timer",
  141. "toolbar",
  142. "tooltip",
  143. "tree",
  144. "treegrid",
  145. "treeitem",
  146. ],
  147. Var[
  148. Literal[
  149. "alert",
  150. "alertdialog",
  151. "application",
  152. "article",
  153. "banner",
  154. "button",
  155. "cell",
  156. "checkbox",
  157. "columnheader",
  158. "combobox",
  159. "complementary",
  160. "contentinfo",
  161. "definition",
  162. "dialog",
  163. "directory",
  164. "document",
  165. "feed",
  166. "figure",
  167. "form",
  168. "grid",
  169. "gridcell",
  170. "group",
  171. "heading",
  172. "img",
  173. "link",
  174. "list",
  175. "listbox",
  176. "listitem",
  177. "log",
  178. "main",
  179. "marquee",
  180. "math",
  181. "menu",
  182. "menubar",
  183. "menuitem",
  184. "menuitemcheckbox",
  185. "menuitemradio",
  186. "navigation",
  187. "none",
  188. "note",
  189. "option",
  190. "presentation",
  191. "progressbar",
  192. "radio",
  193. "radiogroup",
  194. "region",
  195. "row",
  196. "rowgroup",
  197. "rowheader",
  198. "scrollbar",
  199. "search",
  200. "searchbox",
  201. "separator",
  202. "slider",
  203. "spinbutton",
  204. "status",
  205. "switch",
  206. "tab",
  207. "table",
  208. "tablist",
  209. "tabpanel",
  210. "term",
  211. "textbox",
  212. "timer",
  213. "toolbar",
  214. "tooltip",
  215. "tree",
  216. "treegrid",
  217. "treeitem",
  218. ]
  219. ],
  220. ]
  221. ] = None,
  222. slot: Optional[Union[Var[str], str]] = None,
  223. spell_check: Optional[Union[Var[bool], bool]] = None,
  224. tab_index: Optional[Union[Var[int], int]] = None,
  225. title: Optional[Union[Var[str], str]] = None,
  226. style: Optional[Style] = None,
  227. key: Optional[Any] = None,
  228. id: Optional[Any] = None,
  229. class_name: Optional[Any] = None,
  230. autofocus: Optional[bool] = None,
  231. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = 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. ) -> "Sidebar":
  249. """Create the sidebar component.
  250. Args:
  251. children: The children components.
  252. props: The properties of the sidebar.
  253. Returns:
  254. The sidebar component.
  255. """
  256. ...
  257. def add_style(self) -> dict[str, Any] | None: ...
  258. def add_hooks(self) -> List[Var]: ...
  259. class StatefulSidebar(ComponentState):
  260. open: bool
  261. def toggle(self): ...
  262. @classmethod
  263. def get_component(cls, *children, **props): ...
  264. class DrawerSidebar(DrawerRoot):
  265. @overload
  266. @classmethod
  267. def create( # type: ignore
  268. cls,
  269. *children,
  270. default_open: Optional[Union[Var[bool], bool]] = None,
  271. open: Optional[Union[Var[bool], bool]] = None,
  272. modal: Optional[Union[Var[bool], bool]] = None,
  273. direction: Optional[
  274. Union[
  275. Literal["bottom", "left", "right", "top"],
  276. Var[Literal["bottom", "left", "right", "top"]],
  277. ]
  278. ] = None,
  279. dismissible: Optional[Union[Var[bool], bool]] = None,
  280. handle_only: Optional[Union[Var[bool], bool]] = None,
  281. snap_points: Optional[List[Union[float, str]]] = None,
  282. fade_from_index: Optional[Union[Var[int], int]] = None,
  283. scroll_lock_timeout: Optional[Union[Var[int], int]] = None,
  284. prevent_scroll_restoration: Optional[Union[Var[bool], bool]] = None,
  285. should_scale_background: Optional[Union[Var[bool], bool]] = None,
  286. close_threshold: Optional[Union[Var[float], float]] = None,
  287. as_child: Optional[Union[Var[bool], bool]] = None,
  288. style: Optional[Style] = None,
  289. key: Optional[Any] = None,
  290. id: Optional[Any] = None,
  291. class_name: Optional[Any] = None,
  292. autofocus: Optional[bool] = None,
  293. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  294. on_animation_end: Optional[Union[EventType[()], EventType[bool]]] = None,
  295. on_blur: Optional[EventType[()]] = None,
  296. on_click: Optional[EventType[()]] = None,
  297. on_context_menu: Optional[EventType[()]] = None,
  298. on_double_click: Optional[EventType[()]] = None,
  299. on_focus: Optional[EventType[()]] = None,
  300. on_mount: Optional[EventType[()]] = None,
  301. on_mouse_down: Optional[EventType[()]] = None,
  302. on_mouse_enter: Optional[EventType[()]] = None,
  303. on_mouse_leave: Optional[EventType[()]] = None,
  304. on_mouse_move: Optional[EventType[()]] = None,
  305. on_mouse_out: Optional[EventType[()]] = None,
  306. on_mouse_over: Optional[EventType[()]] = None,
  307. on_mouse_up: Optional[EventType[()]] = None,
  308. on_open_change: Optional[Union[EventType[()], EventType[bool]]] = None,
  309. on_scroll: Optional[EventType[()]] = None,
  310. on_unmount: Optional[EventType[()]] = None,
  311. **props,
  312. ) -> "DrawerSidebar":
  313. """Create the sidebar component.
  314. Args:
  315. children: The children components.
  316. props: The properties of the sidebar.
  317. Returns:
  318. The drawer sidebar component.
  319. """
  320. ...
  321. sidebar_trigger_style = {
  322. "position": "fixed",
  323. "z_index": "15",
  324. "color": color("accent", 12),
  325. "background_color": "transparent",
  326. "padding": "0",
  327. }
  328. class SidebarTrigger(Fragment):
  329. @overload
  330. @classmethod
  331. def create( # type: ignore
  332. cls,
  333. *children,
  334. style: Optional[Style] = None,
  335. key: Optional[Any] = None,
  336. id: Optional[Any] = None,
  337. class_name: Optional[Any] = None,
  338. autofocus: Optional[bool] = None,
  339. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  340. on_blur: Optional[EventType[()]] = None,
  341. on_click: Optional[EventType[()]] = None,
  342. on_context_menu: Optional[EventType[()]] = None,
  343. on_double_click: Optional[EventType[()]] = None,
  344. on_focus: Optional[EventType[()]] = None,
  345. on_mount: Optional[EventType[()]] = None,
  346. on_mouse_down: Optional[EventType[()]] = None,
  347. on_mouse_enter: Optional[EventType[()]] = None,
  348. on_mouse_leave: Optional[EventType[()]] = None,
  349. on_mouse_move: Optional[EventType[()]] = None,
  350. on_mouse_out: Optional[EventType[()]] = None,
  351. on_mouse_over: Optional[EventType[()]] = None,
  352. on_mouse_up: Optional[EventType[()]] = None,
  353. on_scroll: Optional[EventType[()]] = None,
  354. on_unmount: Optional[EventType[()]] = None,
  355. **props,
  356. ) -> "SidebarTrigger":
  357. """Create the sidebar trigger component.
  358. Args:
  359. sidebar: The sidebar component.
  360. props: The properties of the sidebar trigger.
  361. Returns:
  362. The sidebar trigger component.
  363. """
  364. ...
  365. class Layout(Box):
  366. @overload
  367. @classmethod
  368. def create( # type: ignore
  369. cls,
  370. *children,
  371. sidebar: Optional[Component] = None,
  372. access_key: Optional[Union[Var[str], str]] = None,
  373. auto_capitalize: Optional[
  374. Union[
  375. Literal["characters", "none", "off", "on", "sentences", "words"],
  376. Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
  377. ]
  378. ] = None,
  379. content_editable: Optional[
  380. Union[
  381. Literal["inherit", "plaintext-only", False, True],
  382. Var[Literal["inherit", "plaintext-only", False, True]],
  383. ]
  384. ] = None,
  385. context_menu: Optional[Union[Var[str], str]] = None,
  386. dir: Optional[Union[Var[str], str]] = None,
  387. draggable: Optional[Union[Var[bool], bool]] = None,
  388. enter_key_hint: Optional[
  389. Union[
  390. Literal["done", "enter", "go", "next", "previous", "search", "send"],
  391. Var[
  392. Literal["done", "enter", "go", "next", "previous", "search", "send"]
  393. ],
  394. ]
  395. ] = None,
  396. hidden: Optional[Union[Var[bool], bool]] = None,
  397. input_mode: Optional[
  398. Union[
  399. Literal[
  400. "decimal",
  401. "email",
  402. "none",
  403. "numeric",
  404. "search",
  405. "tel",
  406. "text",
  407. "url",
  408. ],
  409. Var[
  410. Literal[
  411. "decimal",
  412. "email",
  413. "none",
  414. "numeric",
  415. "search",
  416. "tel",
  417. "text",
  418. "url",
  419. ]
  420. ],
  421. ]
  422. ] = None,
  423. item_prop: Optional[Union[Var[str], str]] = None,
  424. lang: Optional[Union[Var[str], str]] = None,
  425. role: Optional[
  426. Union[
  427. Literal[
  428. "alert",
  429. "alertdialog",
  430. "application",
  431. "article",
  432. "banner",
  433. "button",
  434. "cell",
  435. "checkbox",
  436. "columnheader",
  437. "combobox",
  438. "complementary",
  439. "contentinfo",
  440. "definition",
  441. "dialog",
  442. "directory",
  443. "document",
  444. "feed",
  445. "figure",
  446. "form",
  447. "grid",
  448. "gridcell",
  449. "group",
  450. "heading",
  451. "img",
  452. "link",
  453. "list",
  454. "listbox",
  455. "listitem",
  456. "log",
  457. "main",
  458. "marquee",
  459. "math",
  460. "menu",
  461. "menubar",
  462. "menuitem",
  463. "menuitemcheckbox",
  464. "menuitemradio",
  465. "navigation",
  466. "none",
  467. "note",
  468. "option",
  469. "presentation",
  470. "progressbar",
  471. "radio",
  472. "radiogroup",
  473. "region",
  474. "row",
  475. "rowgroup",
  476. "rowheader",
  477. "scrollbar",
  478. "search",
  479. "searchbox",
  480. "separator",
  481. "slider",
  482. "spinbutton",
  483. "status",
  484. "switch",
  485. "tab",
  486. "table",
  487. "tablist",
  488. "tabpanel",
  489. "term",
  490. "textbox",
  491. "timer",
  492. "toolbar",
  493. "tooltip",
  494. "tree",
  495. "treegrid",
  496. "treeitem",
  497. ],
  498. Var[
  499. Literal[
  500. "alert",
  501. "alertdialog",
  502. "application",
  503. "article",
  504. "banner",
  505. "button",
  506. "cell",
  507. "checkbox",
  508. "columnheader",
  509. "combobox",
  510. "complementary",
  511. "contentinfo",
  512. "definition",
  513. "dialog",
  514. "directory",
  515. "document",
  516. "feed",
  517. "figure",
  518. "form",
  519. "grid",
  520. "gridcell",
  521. "group",
  522. "heading",
  523. "img",
  524. "link",
  525. "list",
  526. "listbox",
  527. "listitem",
  528. "log",
  529. "main",
  530. "marquee",
  531. "math",
  532. "menu",
  533. "menubar",
  534. "menuitem",
  535. "menuitemcheckbox",
  536. "menuitemradio",
  537. "navigation",
  538. "none",
  539. "note",
  540. "option",
  541. "presentation",
  542. "progressbar",
  543. "radio",
  544. "radiogroup",
  545. "region",
  546. "row",
  547. "rowgroup",
  548. "rowheader",
  549. "scrollbar",
  550. "search",
  551. "searchbox",
  552. "separator",
  553. "slider",
  554. "spinbutton",
  555. "status",
  556. "switch",
  557. "tab",
  558. "table",
  559. "tablist",
  560. "tabpanel",
  561. "term",
  562. "textbox",
  563. "timer",
  564. "toolbar",
  565. "tooltip",
  566. "tree",
  567. "treegrid",
  568. "treeitem",
  569. ]
  570. ],
  571. ]
  572. ] = None,
  573. slot: Optional[Union[Var[str], str]] = None,
  574. spell_check: Optional[Union[Var[bool], bool]] = None,
  575. tab_index: Optional[Union[Var[int], int]] = None,
  576. title: Optional[Union[Var[str], str]] = None,
  577. style: Optional[Style] = None,
  578. key: Optional[Any] = None,
  579. id: Optional[Any] = None,
  580. class_name: Optional[Any] = None,
  581. autofocus: Optional[bool] = None,
  582. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  583. on_blur: Optional[EventType[()]] = None,
  584. on_click: Optional[EventType[()]] = None,
  585. on_context_menu: Optional[EventType[()]] = None,
  586. on_double_click: Optional[EventType[()]] = None,
  587. on_focus: Optional[EventType[()]] = None,
  588. on_mount: Optional[EventType[()]] = None,
  589. on_mouse_down: Optional[EventType[()]] = None,
  590. on_mouse_enter: Optional[EventType[()]] = None,
  591. on_mouse_leave: Optional[EventType[()]] = None,
  592. on_mouse_move: Optional[EventType[()]] = None,
  593. on_mouse_out: Optional[EventType[()]] = None,
  594. on_mouse_over: Optional[EventType[()]] = None,
  595. on_mouse_up: Optional[EventType[()]] = None,
  596. on_scroll: Optional[EventType[()]] = None,
  597. on_unmount: Optional[EventType[()]] = None,
  598. **props,
  599. ) -> "Layout":
  600. """Create the layout component.
  601. Args:
  602. content: The content component.
  603. sidebar: The sidebar component.
  604. props: The properties of the layout.
  605. Returns:
  606. The layout component.
  607. """
  608. ...
  609. class LayoutNamespace(ComponentNamespace):
  610. drawer_sidebar = staticmethod(DrawerSidebar.create)
  611. stateful_sidebar = staticmethod(StatefulSidebar.create)
  612. sidebar = staticmethod(Sidebar.create)
  613. @staticmethod
  614. def __call__(
  615. *children,
  616. sidebar: Optional[Component] = None,
  617. access_key: Optional[Union[Var[str], str]] = None,
  618. auto_capitalize: Optional[
  619. Union[
  620. Literal["characters", "none", "off", "on", "sentences", "words"],
  621. Var[Literal["characters", "none", "off", "on", "sentences", "words"]],
  622. ]
  623. ] = None,
  624. content_editable: Optional[
  625. Union[
  626. Literal["inherit", "plaintext-only", False, True],
  627. Var[Literal["inherit", "plaintext-only", False, True]],
  628. ]
  629. ] = None,
  630. context_menu: Optional[Union[Var[str], str]] = None,
  631. dir: Optional[Union[Var[str], str]] = None,
  632. draggable: Optional[Union[Var[bool], bool]] = None,
  633. enter_key_hint: Optional[
  634. Union[
  635. Literal["done", "enter", "go", "next", "previous", "search", "send"],
  636. Var[
  637. Literal["done", "enter", "go", "next", "previous", "search", "send"]
  638. ],
  639. ]
  640. ] = None,
  641. hidden: Optional[Union[Var[bool], bool]] = None,
  642. input_mode: Optional[
  643. Union[
  644. Literal[
  645. "decimal",
  646. "email",
  647. "none",
  648. "numeric",
  649. "search",
  650. "tel",
  651. "text",
  652. "url",
  653. ],
  654. Var[
  655. Literal[
  656. "decimal",
  657. "email",
  658. "none",
  659. "numeric",
  660. "search",
  661. "tel",
  662. "text",
  663. "url",
  664. ]
  665. ],
  666. ]
  667. ] = None,
  668. item_prop: Optional[Union[Var[str], str]] = None,
  669. lang: Optional[Union[Var[str], str]] = None,
  670. role: Optional[
  671. Union[
  672. Literal[
  673. "alert",
  674. "alertdialog",
  675. "application",
  676. "article",
  677. "banner",
  678. "button",
  679. "cell",
  680. "checkbox",
  681. "columnheader",
  682. "combobox",
  683. "complementary",
  684. "contentinfo",
  685. "definition",
  686. "dialog",
  687. "directory",
  688. "document",
  689. "feed",
  690. "figure",
  691. "form",
  692. "grid",
  693. "gridcell",
  694. "group",
  695. "heading",
  696. "img",
  697. "link",
  698. "list",
  699. "listbox",
  700. "listitem",
  701. "log",
  702. "main",
  703. "marquee",
  704. "math",
  705. "menu",
  706. "menubar",
  707. "menuitem",
  708. "menuitemcheckbox",
  709. "menuitemradio",
  710. "navigation",
  711. "none",
  712. "note",
  713. "option",
  714. "presentation",
  715. "progressbar",
  716. "radio",
  717. "radiogroup",
  718. "region",
  719. "row",
  720. "rowgroup",
  721. "rowheader",
  722. "scrollbar",
  723. "search",
  724. "searchbox",
  725. "separator",
  726. "slider",
  727. "spinbutton",
  728. "status",
  729. "switch",
  730. "tab",
  731. "table",
  732. "tablist",
  733. "tabpanel",
  734. "term",
  735. "textbox",
  736. "timer",
  737. "toolbar",
  738. "tooltip",
  739. "tree",
  740. "treegrid",
  741. "treeitem",
  742. ],
  743. Var[
  744. Literal[
  745. "alert",
  746. "alertdialog",
  747. "application",
  748. "article",
  749. "banner",
  750. "button",
  751. "cell",
  752. "checkbox",
  753. "columnheader",
  754. "combobox",
  755. "complementary",
  756. "contentinfo",
  757. "definition",
  758. "dialog",
  759. "directory",
  760. "document",
  761. "feed",
  762. "figure",
  763. "form",
  764. "grid",
  765. "gridcell",
  766. "group",
  767. "heading",
  768. "img",
  769. "link",
  770. "list",
  771. "listbox",
  772. "listitem",
  773. "log",
  774. "main",
  775. "marquee",
  776. "math",
  777. "menu",
  778. "menubar",
  779. "menuitem",
  780. "menuitemcheckbox",
  781. "menuitemradio",
  782. "navigation",
  783. "none",
  784. "note",
  785. "option",
  786. "presentation",
  787. "progressbar",
  788. "radio",
  789. "radiogroup",
  790. "region",
  791. "row",
  792. "rowgroup",
  793. "rowheader",
  794. "scrollbar",
  795. "search",
  796. "searchbox",
  797. "separator",
  798. "slider",
  799. "spinbutton",
  800. "status",
  801. "switch",
  802. "tab",
  803. "table",
  804. "tablist",
  805. "tabpanel",
  806. "term",
  807. "textbox",
  808. "timer",
  809. "toolbar",
  810. "tooltip",
  811. "tree",
  812. "treegrid",
  813. "treeitem",
  814. ]
  815. ],
  816. ]
  817. ] = None,
  818. slot: Optional[Union[Var[str], str]] = None,
  819. spell_check: Optional[Union[Var[bool], bool]] = None,
  820. tab_index: Optional[Union[Var[int], int]] = None,
  821. title: Optional[Union[Var[str], str]] = None,
  822. style: Optional[Style] = None,
  823. key: Optional[Any] = None,
  824. id: Optional[Any] = None,
  825. class_name: Optional[Any] = None,
  826. autofocus: Optional[bool] = None,
  827. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  828. on_blur: Optional[EventType[()]] = None,
  829. on_click: Optional[EventType[()]] = None,
  830. on_context_menu: Optional[EventType[()]] = None,
  831. on_double_click: Optional[EventType[()]] = None,
  832. on_focus: Optional[EventType[()]] = None,
  833. on_mount: Optional[EventType[()]] = None,
  834. on_mouse_down: Optional[EventType[()]] = None,
  835. on_mouse_enter: Optional[EventType[()]] = None,
  836. on_mouse_leave: Optional[EventType[()]] = None,
  837. on_mouse_move: Optional[EventType[()]] = None,
  838. on_mouse_out: Optional[EventType[()]] = None,
  839. on_mouse_over: Optional[EventType[()]] = None,
  840. on_mouse_up: Optional[EventType[()]] = None,
  841. on_scroll: Optional[EventType[()]] = None,
  842. on_unmount: Optional[EventType[()]] = None,
  843. **props,
  844. ) -> "Layout":
  845. """Create the layout component.
  846. Args:
  847. content: The content component.
  848. sidebar: The sidebar component.
  849. props: The properties of the layout.
  850. Returns:
  851. The layout component.
  852. """
  853. ...
  854. layout = LayoutNamespace()