sticky.pyi 31 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085
  1. """Stub file for reflex/components/core/sticky.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.component import ComponentNamespace
  7. from reflex.components.core.breakpoints import Breakpoints
  8. from reflex.components.el.elements.inline import A
  9. from reflex.components.el.elements.media import Svg
  10. from reflex.components.radix.themes.typography.text import Text
  11. from reflex.event import EventType
  12. from reflex.style import Style
  13. from reflex.vars.base import Var
  14. class StickyLogo(Svg):
  15. @overload
  16. @classmethod
  17. def create( # type: ignore
  18. cls,
  19. *children,
  20. width: Var[int | str] | int | str | None = None,
  21. height: Var[int | str] | int | str | None = None,
  22. xmlns: Var[str] | str | None = None,
  23. access_key: Var[str] | str | None = None,
  24. auto_capitalize: Literal[
  25. "characters", "none", "off", "on", "sentences", "words"
  26. ]
  27. | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
  28. | None = None,
  29. content_editable: Literal["inherit", "plaintext-only", False, True]
  30. | Var[Literal["inherit", "plaintext-only", False, True]]
  31. | None = None,
  32. context_menu: Var[str] | str | None = None,
  33. dir: Var[str] | str | None = None,
  34. draggable: Var[bool] | bool | None = None,
  35. enter_key_hint: Literal[
  36. "done", "enter", "go", "next", "previous", "search", "send"
  37. ]
  38. | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
  39. | None = None,
  40. hidden: Var[bool] | bool | None = None,
  41. input_mode: Literal[
  42. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  43. ]
  44. | Var[
  45. Literal[
  46. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  47. ]
  48. ]
  49. | None = None,
  50. item_prop: Var[str] | str | None = None,
  51. lang: Var[str] | str | None = None,
  52. role: Literal[
  53. "alert",
  54. "alertdialog",
  55. "application",
  56. "article",
  57. "banner",
  58. "button",
  59. "cell",
  60. "checkbox",
  61. "columnheader",
  62. "combobox",
  63. "complementary",
  64. "contentinfo",
  65. "definition",
  66. "dialog",
  67. "directory",
  68. "document",
  69. "feed",
  70. "figure",
  71. "form",
  72. "grid",
  73. "gridcell",
  74. "group",
  75. "heading",
  76. "img",
  77. "link",
  78. "list",
  79. "listbox",
  80. "listitem",
  81. "log",
  82. "main",
  83. "marquee",
  84. "math",
  85. "menu",
  86. "menubar",
  87. "menuitem",
  88. "menuitemcheckbox",
  89. "menuitemradio",
  90. "navigation",
  91. "none",
  92. "note",
  93. "option",
  94. "presentation",
  95. "progressbar",
  96. "radio",
  97. "radiogroup",
  98. "region",
  99. "row",
  100. "rowgroup",
  101. "rowheader",
  102. "scrollbar",
  103. "search",
  104. "searchbox",
  105. "separator",
  106. "slider",
  107. "spinbutton",
  108. "status",
  109. "switch",
  110. "tab",
  111. "table",
  112. "tablist",
  113. "tabpanel",
  114. "term",
  115. "textbox",
  116. "timer",
  117. "toolbar",
  118. "tooltip",
  119. "tree",
  120. "treegrid",
  121. "treeitem",
  122. ]
  123. | Var[
  124. Literal[
  125. "alert",
  126. "alertdialog",
  127. "application",
  128. "article",
  129. "banner",
  130. "button",
  131. "cell",
  132. "checkbox",
  133. "columnheader",
  134. "combobox",
  135. "complementary",
  136. "contentinfo",
  137. "definition",
  138. "dialog",
  139. "directory",
  140. "document",
  141. "feed",
  142. "figure",
  143. "form",
  144. "grid",
  145. "gridcell",
  146. "group",
  147. "heading",
  148. "img",
  149. "link",
  150. "list",
  151. "listbox",
  152. "listitem",
  153. "log",
  154. "main",
  155. "marquee",
  156. "math",
  157. "menu",
  158. "menubar",
  159. "menuitem",
  160. "menuitemcheckbox",
  161. "menuitemradio",
  162. "navigation",
  163. "none",
  164. "note",
  165. "option",
  166. "presentation",
  167. "progressbar",
  168. "radio",
  169. "radiogroup",
  170. "region",
  171. "row",
  172. "rowgroup",
  173. "rowheader",
  174. "scrollbar",
  175. "search",
  176. "searchbox",
  177. "separator",
  178. "slider",
  179. "spinbutton",
  180. "status",
  181. "switch",
  182. "tab",
  183. "table",
  184. "tablist",
  185. "tabpanel",
  186. "term",
  187. "textbox",
  188. "timer",
  189. "toolbar",
  190. "tooltip",
  191. "tree",
  192. "treegrid",
  193. "treeitem",
  194. ]
  195. ]
  196. | None = None,
  197. slot: Var[str] | str | None = None,
  198. spell_check: Var[bool] | bool | None = None,
  199. tab_index: Var[int] | int | None = None,
  200. title: Var[str] | str | None = None,
  201. style: Style | None = None,
  202. key: Any | None = None,
  203. id: Any | None = None,
  204. class_name: Any | None = None,
  205. autofocus: bool | None = None,
  206. custom_attrs: dict[str, Var | Any] | None = None,
  207. on_blur: Optional[EventType[()]] = None,
  208. on_click: Optional[EventType[()]] = None,
  209. on_context_menu: Optional[EventType[()]] = None,
  210. on_double_click: Optional[EventType[()]] = None,
  211. on_focus: Optional[EventType[()]] = None,
  212. on_mount: Optional[EventType[()]] = None,
  213. on_mouse_down: Optional[EventType[()]] = None,
  214. on_mouse_enter: Optional[EventType[()]] = None,
  215. on_mouse_leave: Optional[EventType[()]] = None,
  216. on_mouse_move: Optional[EventType[()]] = None,
  217. on_mouse_out: Optional[EventType[()]] = None,
  218. on_mouse_over: Optional[EventType[()]] = None,
  219. on_mouse_up: Optional[EventType[()]] = None,
  220. on_scroll: Optional[EventType[()]] = None,
  221. on_unmount: Optional[EventType[()]] = None,
  222. **props,
  223. ) -> "StickyLogo":
  224. """Create the simple Reflex logo SVG.
  225. Returns:
  226. The simple Reflex logo SVG.
  227. """
  228. ...
  229. def add_style(self): ...
  230. class StickyLabel(Text):
  231. @overload
  232. @classmethod
  233. def create( # type: ignore
  234. cls,
  235. *children,
  236. as_child: Var[bool] | bool | None = None,
  237. as_: Literal[
  238. "abbr",
  239. "b",
  240. "cite",
  241. "del",
  242. "div",
  243. "em",
  244. "i",
  245. "ins",
  246. "kbd",
  247. "label",
  248. "mark",
  249. "p",
  250. "s",
  251. "samp",
  252. "span",
  253. "sub",
  254. "sup",
  255. "u",
  256. ]
  257. | Var[
  258. Literal[
  259. "abbr",
  260. "b",
  261. "cite",
  262. "del",
  263. "div",
  264. "em",
  265. "i",
  266. "ins",
  267. "kbd",
  268. "label",
  269. "mark",
  270. "p",
  271. "s",
  272. "samp",
  273. "span",
  274. "sub",
  275. "sup",
  276. "u",
  277. ]
  278. ]
  279. | None = None,
  280. size: Breakpoints[str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]]
  281. | Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]
  282. | Var[
  283. Breakpoints[str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]]
  284. | Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]
  285. ]
  286. | None = None,
  287. weight: Breakpoints[str, Literal["bold", "light", "medium", "regular"]]
  288. | Literal["bold", "light", "medium", "regular"]
  289. | Var[
  290. Breakpoints[str, Literal["bold", "light", "medium", "regular"]]
  291. | Literal["bold", "light", "medium", "regular"]
  292. ]
  293. | None = None,
  294. align: Breakpoints[str, Literal["center", "left", "right"]]
  295. | Literal["center", "left", "right"]
  296. | Var[
  297. Breakpoints[str, Literal["center", "left", "right"]]
  298. | Literal["center", "left", "right"]
  299. ]
  300. | None = None,
  301. trim: Breakpoints[str, Literal["both", "end", "normal", "start"]]
  302. | Literal["both", "end", "normal", "start"]
  303. | Var[
  304. Breakpoints[str, Literal["both", "end", "normal", "start"]]
  305. | Literal["both", "end", "normal", "start"]
  306. ]
  307. | None = None,
  308. color_scheme: 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. | Var[
  337. Literal[
  338. "amber",
  339. "blue",
  340. "bronze",
  341. "brown",
  342. "crimson",
  343. "cyan",
  344. "gold",
  345. "grass",
  346. "gray",
  347. "green",
  348. "indigo",
  349. "iris",
  350. "jade",
  351. "lime",
  352. "mint",
  353. "orange",
  354. "pink",
  355. "plum",
  356. "purple",
  357. "red",
  358. "ruby",
  359. "sky",
  360. "teal",
  361. "tomato",
  362. "violet",
  363. "yellow",
  364. ]
  365. ]
  366. | None = None,
  367. high_contrast: Var[bool] | bool | None = None,
  368. access_key: Var[str] | str | None = None,
  369. auto_capitalize: Literal[
  370. "characters", "none", "off", "on", "sentences", "words"
  371. ]
  372. | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
  373. | None = None,
  374. content_editable: Literal["inherit", "plaintext-only", False, True]
  375. | Var[Literal["inherit", "plaintext-only", False, True]]
  376. | None = None,
  377. context_menu: Var[str] | str | None = None,
  378. dir: Var[str] | str | None = None,
  379. draggable: Var[bool] | bool | None = None,
  380. enter_key_hint: Literal[
  381. "done", "enter", "go", "next", "previous", "search", "send"
  382. ]
  383. | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
  384. | None = None,
  385. hidden: Var[bool] | bool | None = None,
  386. input_mode: Literal[
  387. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  388. ]
  389. | Var[
  390. Literal[
  391. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  392. ]
  393. ]
  394. | None = None,
  395. item_prop: Var[str] | str | None = None,
  396. lang: Var[str] | str | None = None,
  397. role: Literal[
  398. "alert",
  399. "alertdialog",
  400. "application",
  401. "article",
  402. "banner",
  403. "button",
  404. "cell",
  405. "checkbox",
  406. "columnheader",
  407. "combobox",
  408. "complementary",
  409. "contentinfo",
  410. "definition",
  411. "dialog",
  412. "directory",
  413. "document",
  414. "feed",
  415. "figure",
  416. "form",
  417. "grid",
  418. "gridcell",
  419. "group",
  420. "heading",
  421. "img",
  422. "link",
  423. "list",
  424. "listbox",
  425. "listitem",
  426. "log",
  427. "main",
  428. "marquee",
  429. "math",
  430. "menu",
  431. "menubar",
  432. "menuitem",
  433. "menuitemcheckbox",
  434. "menuitemradio",
  435. "navigation",
  436. "none",
  437. "note",
  438. "option",
  439. "presentation",
  440. "progressbar",
  441. "radio",
  442. "radiogroup",
  443. "region",
  444. "row",
  445. "rowgroup",
  446. "rowheader",
  447. "scrollbar",
  448. "search",
  449. "searchbox",
  450. "separator",
  451. "slider",
  452. "spinbutton",
  453. "status",
  454. "switch",
  455. "tab",
  456. "table",
  457. "tablist",
  458. "tabpanel",
  459. "term",
  460. "textbox",
  461. "timer",
  462. "toolbar",
  463. "tooltip",
  464. "tree",
  465. "treegrid",
  466. "treeitem",
  467. ]
  468. | Var[
  469. Literal[
  470. "alert",
  471. "alertdialog",
  472. "application",
  473. "article",
  474. "banner",
  475. "button",
  476. "cell",
  477. "checkbox",
  478. "columnheader",
  479. "combobox",
  480. "complementary",
  481. "contentinfo",
  482. "definition",
  483. "dialog",
  484. "directory",
  485. "document",
  486. "feed",
  487. "figure",
  488. "form",
  489. "grid",
  490. "gridcell",
  491. "group",
  492. "heading",
  493. "img",
  494. "link",
  495. "list",
  496. "listbox",
  497. "listitem",
  498. "log",
  499. "main",
  500. "marquee",
  501. "math",
  502. "menu",
  503. "menubar",
  504. "menuitem",
  505. "menuitemcheckbox",
  506. "menuitemradio",
  507. "navigation",
  508. "none",
  509. "note",
  510. "option",
  511. "presentation",
  512. "progressbar",
  513. "radio",
  514. "radiogroup",
  515. "region",
  516. "row",
  517. "rowgroup",
  518. "rowheader",
  519. "scrollbar",
  520. "search",
  521. "searchbox",
  522. "separator",
  523. "slider",
  524. "spinbutton",
  525. "status",
  526. "switch",
  527. "tab",
  528. "table",
  529. "tablist",
  530. "tabpanel",
  531. "term",
  532. "textbox",
  533. "timer",
  534. "toolbar",
  535. "tooltip",
  536. "tree",
  537. "treegrid",
  538. "treeitem",
  539. ]
  540. ]
  541. | None = None,
  542. slot: Var[str] | str | None = None,
  543. spell_check: Var[bool] | bool | None = None,
  544. tab_index: Var[int] | int | None = None,
  545. title: Var[str] | str | None = None,
  546. style: Style | None = None,
  547. key: Any | None = None,
  548. id: Any | None = None,
  549. class_name: Any | None = None,
  550. autofocus: bool | None = None,
  551. custom_attrs: dict[str, Var | Any] | None = None,
  552. on_blur: Optional[EventType[()]] = None,
  553. on_click: Optional[EventType[()]] = None,
  554. on_context_menu: Optional[EventType[()]] = None,
  555. on_double_click: Optional[EventType[()]] = None,
  556. on_focus: Optional[EventType[()]] = None,
  557. on_mount: Optional[EventType[()]] = None,
  558. on_mouse_down: Optional[EventType[()]] = None,
  559. on_mouse_enter: Optional[EventType[()]] = None,
  560. on_mouse_leave: Optional[EventType[()]] = None,
  561. on_mouse_move: Optional[EventType[()]] = None,
  562. on_mouse_out: Optional[EventType[()]] = None,
  563. on_mouse_over: Optional[EventType[()]] = None,
  564. on_mouse_up: Optional[EventType[()]] = None,
  565. on_scroll: Optional[EventType[()]] = None,
  566. on_unmount: Optional[EventType[()]] = None,
  567. **props,
  568. ) -> "StickyLabel":
  569. """Create the sticky label.
  570. Returns:
  571. The sticky label.
  572. """
  573. ...
  574. def add_style(self): ...
  575. class StickyBadge(A):
  576. @overload
  577. @classmethod
  578. def create( # type: ignore
  579. cls,
  580. *children,
  581. download: Var[bool | str] | bool | str | None = None,
  582. href: Var[str] | str | None = None,
  583. href_lang: Var[str] | str | None = None,
  584. media: Var[str] | str | None = None,
  585. ping: Var[str] | str | None = None,
  586. referrer_policy: Literal[
  587. "",
  588. "no-referrer",
  589. "no-referrer-when-downgrade",
  590. "origin",
  591. "origin-when-cross-origin",
  592. "same-origin",
  593. "strict-origin",
  594. "strict-origin-when-cross-origin",
  595. "unsafe-url",
  596. ]
  597. | Var[
  598. Literal[
  599. "",
  600. "no-referrer",
  601. "no-referrer-when-downgrade",
  602. "origin",
  603. "origin-when-cross-origin",
  604. "same-origin",
  605. "strict-origin",
  606. "strict-origin-when-cross-origin",
  607. "unsafe-url",
  608. ]
  609. ]
  610. | None = None,
  611. rel: Var[str] | str | None = None,
  612. target: Literal["_blank", "_parent", "_self", "_top"]
  613. | Var[Literal["_blank", "_parent", "_self", "_top"] | str]
  614. | str
  615. | None = None,
  616. access_key: Var[str] | str | None = None,
  617. auto_capitalize: Literal[
  618. "characters", "none", "off", "on", "sentences", "words"
  619. ]
  620. | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
  621. | None = None,
  622. content_editable: Literal["inherit", "plaintext-only", False, True]
  623. | Var[Literal["inherit", "plaintext-only", False, True]]
  624. | None = None,
  625. context_menu: Var[str] | str | None = None,
  626. dir: Var[str] | str | None = None,
  627. draggable: Var[bool] | bool | None = None,
  628. enter_key_hint: Literal[
  629. "done", "enter", "go", "next", "previous", "search", "send"
  630. ]
  631. | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
  632. | None = None,
  633. hidden: Var[bool] | bool | None = None,
  634. input_mode: Literal[
  635. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  636. ]
  637. | Var[
  638. Literal[
  639. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  640. ]
  641. ]
  642. | None = None,
  643. item_prop: Var[str] | str | None = None,
  644. lang: Var[str] | str | None = None,
  645. role: Literal[
  646. "alert",
  647. "alertdialog",
  648. "application",
  649. "article",
  650. "banner",
  651. "button",
  652. "cell",
  653. "checkbox",
  654. "columnheader",
  655. "combobox",
  656. "complementary",
  657. "contentinfo",
  658. "definition",
  659. "dialog",
  660. "directory",
  661. "document",
  662. "feed",
  663. "figure",
  664. "form",
  665. "grid",
  666. "gridcell",
  667. "group",
  668. "heading",
  669. "img",
  670. "link",
  671. "list",
  672. "listbox",
  673. "listitem",
  674. "log",
  675. "main",
  676. "marquee",
  677. "math",
  678. "menu",
  679. "menubar",
  680. "menuitem",
  681. "menuitemcheckbox",
  682. "menuitemradio",
  683. "navigation",
  684. "none",
  685. "note",
  686. "option",
  687. "presentation",
  688. "progressbar",
  689. "radio",
  690. "radiogroup",
  691. "region",
  692. "row",
  693. "rowgroup",
  694. "rowheader",
  695. "scrollbar",
  696. "search",
  697. "searchbox",
  698. "separator",
  699. "slider",
  700. "spinbutton",
  701. "status",
  702. "switch",
  703. "tab",
  704. "table",
  705. "tablist",
  706. "tabpanel",
  707. "term",
  708. "textbox",
  709. "timer",
  710. "toolbar",
  711. "tooltip",
  712. "tree",
  713. "treegrid",
  714. "treeitem",
  715. ]
  716. | Var[
  717. Literal[
  718. "alert",
  719. "alertdialog",
  720. "application",
  721. "article",
  722. "banner",
  723. "button",
  724. "cell",
  725. "checkbox",
  726. "columnheader",
  727. "combobox",
  728. "complementary",
  729. "contentinfo",
  730. "definition",
  731. "dialog",
  732. "directory",
  733. "document",
  734. "feed",
  735. "figure",
  736. "form",
  737. "grid",
  738. "gridcell",
  739. "group",
  740. "heading",
  741. "img",
  742. "link",
  743. "list",
  744. "listbox",
  745. "listitem",
  746. "log",
  747. "main",
  748. "marquee",
  749. "math",
  750. "menu",
  751. "menubar",
  752. "menuitem",
  753. "menuitemcheckbox",
  754. "menuitemradio",
  755. "navigation",
  756. "none",
  757. "note",
  758. "option",
  759. "presentation",
  760. "progressbar",
  761. "radio",
  762. "radiogroup",
  763. "region",
  764. "row",
  765. "rowgroup",
  766. "rowheader",
  767. "scrollbar",
  768. "search",
  769. "searchbox",
  770. "separator",
  771. "slider",
  772. "spinbutton",
  773. "status",
  774. "switch",
  775. "tab",
  776. "table",
  777. "tablist",
  778. "tabpanel",
  779. "term",
  780. "textbox",
  781. "timer",
  782. "toolbar",
  783. "tooltip",
  784. "tree",
  785. "treegrid",
  786. "treeitem",
  787. ]
  788. ]
  789. | None = None,
  790. slot: Var[str] | str | None = None,
  791. spell_check: Var[bool] | bool | None = None,
  792. tab_index: Var[int] | int | None = None,
  793. title: Var[str] | str | None = None,
  794. style: Style | None = None,
  795. key: Any | None = None,
  796. id: Any | None = None,
  797. class_name: Any | None = None,
  798. autofocus: bool | None = None,
  799. custom_attrs: dict[str, Var | Any] | None = None,
  800. on_blur: Optional[EventType[()]] = None,
  801. on_click: Optional[EventType[()]] = None,
  802. on_context_menu: Optional[EventType[()]] = None,
  803. on_double_click: Optional[EventType[()]] = None,
  804. on_focus: Optional[EventType[()]] = None,
  805. on_mount: Optional[EventType[()]] = None,
  806. on_mouse_down: Optional[EventType[()]] = None,
  807. on_mouse_enter: Optional[EventType[()]] = None,
  808. on_mouse_leave: Optional[EventType[()]] = None,
  809. on_mouse_move: Optional[EventType[()]] = None,
  810. on_mouse_out: Optional[EventType[()]] = None,
  811. on_mouse_over: Optional[EventType[()]] = None,
  812. on_mouse_up: Optional[EventType[()]] = None,
  813. on_scroll: Optional[EventType[()]] = None,
  814. on_unmount: Optional[EventType[()]] = None,
  815. **props,
  816. ) -> "StickyBadge":
  817. """Create the sticky badge.
  818. Returns:
  819. The sticky badge.
  820. """
  821. ...
  822. def add_style(self): ...
  823. class StickyNamespace(ComponentNamespace):
  824. label = staticmethod(StickyLabel.create)
  825. logo = staticmethod(StickyLogo.create)
  826. @staticmethod
  827. def __call__(
  828. *children,
  829. download: Var[bool | str] | bool | str | None = None,
  830. href: Var[str] | str | None = None,
  831. href_lang: Var[str] | str | None = None,
  832. media: Var[str] | str | None = None,
  833. ping: Var[str] | str | None = None,
  834. referrer_policy: Literal[
  835. "",
  836. "no-referrer",
  837. "no-referrer-when-downgrade",
  838. "origin",
  839. "origin-when-cross-origin",
  840. "same-origin",
  841. "strict-origin",
  842. "strict-origin-when-cross-origin",
  843. "unsafe-url",
  844. ]
  845. | Var[
  846. Literal[
  847. "",
  848. "no-referrer",
  849. "no-referrer-when-downgrade",
  850. "origin",
  851. "origin-when-cross-origin",
  852. "same-origin",
  853. "strict-origin",
  854. "strict-origin-when-cross-origin",
  855. "unsafe-url",
  856. ]
  857. ]
  858. | None = None,
  859. rel: Var[str] | str | None = None,
  860. target: Literal["_blank", "_parent", "_self", "_top"]
  861. | Var[Literal["_blank", "_parent", "_self", "_top"] | str]
  862. | str
  863. | None = None,
  864. access_key: Var[str] | str | None = None,
  865. auto_capitalize: Literal[
  866. "characters", "none", "off", "on", "sentences", "words"
  867. ]
  868. | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
  869. | None = None,
  870. content_editable: Literal["inherit", "plaintext-only", False, True]
  871. | Var[Literal["inherit", "plaintext-only", False, True]]
  872. | None = None,
  873. context_menu: Var[str] | str | None = None,
  874. dir: Var[str] | str | None = None,
  875. draggable: Var[bool] | bool | None = None,
  876. enter_key_hint: Literal[
  877. "done", "enter", "go", "next", "previous", "search", "send"
  878. ]
  879. | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
  880. | None = None,
  881. hidden: Var[bool] | bool | None = None,
  882. input_mode: Literal[
  883. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  884. ]
  885. | Var[
  886. Literal[
  887. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  888. ]
  889. ]
  890. | None = None,
  891. item_prop: Var[str] | str | None = None,
  892. lang: Var[str] | str | None = None,
  893. role: Literal[
  894. "alert",
  895. "alertdialog",
  896. "application",
  897. "article",
  898. "banner",
  899. "button",
  900. "cell",
  901. "checkbox",
  902. "columnheader",
  903. "combobox",
  904. "complementary",
  905. "contentinfo",
  906. "definition",
  907. "dialog",
  908. "directory",
  909. "document",
  910. "feed",
  911. "figure",
  912. "form",
  913. "grid",
  914. "gridcell",
  915. "group",
  916. "heading",
  917. "img",
  918. "link",
  919. "list",
  920. "listbox",
  921. "listitem",
  922. "log",
  923. "main",
  924. "marquee",
  925. "math",
  926. "menu",
  927. "menubar",
  928. "menuitem",
  929. "menuitemcheckbox",
  930. "menuitemradio",
  931. "navigation",
  932. "none",
  933. "note",
  934. "option",
  935. "presentation",
  936. "progressbar",
  937. "radio",
  938. "radiogroup",
  939. "region",
  940. "row",
  941. "rowgroup",
  942. "rowheader",
  943. "scrollbar",
  944. "search",
  945. "searchbox",
  946. "separator",
  947. "slider",
  948. "spinbutton",
  949. "status",
  950. "switch",
  951. "tab",
  952. "table",
  953. "tablist",
  954. "tabpanel",
  955. "term",
  956. "textbox",
  957. "timer",
  958. "toolbar",
  959. "tooltip",
  960. "tree",
  961. "treegrid",
  962. "treeitem",
  963. ]
  964. | Var[
  965. Literal[
  966. "alert",
  967. "alertdialog",
  968. "application",
  969. "article",
  970. "banner",
  971. "button",
  972. "cell",
  973. "checkbox",
  974. "columnheader",
  975. "combobox",
  976. "complementary",
  977. "contentinfo",
  978. "definition",
  979. "dialog",
  980. "directory",
  981. "document",
  982. "feed",
  983. "figure",
  984. "form",
  985. "grid",
  986. "gridcell",
  987. "group",
  988. "heading",
  989. "img",
  990. "link",
  991. "list",
  992. "listbox",
  993. "listitem",
  994. "log",
  995. "main",
  996. "marquee",
  997. "math",
  998. "menu",
  999. "menubar",
  1000. "menuitem",
  1001. "menuitemcheckbox",
  1002. "menuitemradio",
  1003. "navigation",
  1004. "none",
  1005. "note",
  1006. "option",
  1007. "presentation",
  1008. "progressbar",
  1009. "radio",
  1010. "radiogroup",
  1011. "region",
  1012. "row",
  1013. "rowgroup",
  1014. "rowheader",
  1015. "scrollbar",
  1016. "search",
  1017. "searchbox",
  1018. "separator",
  1019. "slider",
  1020. "spinbutton",
  1021. "status",
  1022. "switch",
  1023. "tab",
  1024. "table",
  1025. "tablist",
  1026. "tabpanel",
  1027. "term",
  1028. "textbox",
  1029. "timer",
  1030. "toolbar",
  1031. "tooltip",
  1032. "tree",
  1033. "treegrid",
  1034. "treeitem",
  1035. ]
  1036. ]
  1037. | None = None,
  1038. slot: Var[str] | str | None = None,
  1039. spell_check: Var[bool] | bool | None = None,
  1040. tab_index: Var[int] | int | None = None,
  1041. title: Var[str] | str | None = None,
  1042. style: Style | None = None,
  1043. key: Any | None = None,
  1044. id: Any | None = None,
  1045. class_name: Any | None = None,
  1046. autofocus: bool | None = None,
  1047. custom_attrs: dict[str, Var | Any] | None = None,
  1048. on_blur: Optional[EventType[()]] = None,
  1049. on_click: Optional[EventType[()]] = None,
  1050. on_context_menu: Optional[EventType[()]] = None,
  1051. on_double_click: Optional[EventType[()]] = None,
  1052. on_focus: Optional[EventType[()]] = None,
  1053. on_mount: Optional[EventType[()]] = None,
  1054. on_mouse_down: Optional[EventType[()]] = None,
  1055. on_mouse_enter: Optional[EventType[()]] = None,
  1056. on_mouse_leave: Optional[EventType[()]] = None,
  1057. on_mouse_move: Optional[EventType[()]] = None,
  1058. on_mouse_out: Optional[EventType[()]] = None,
  1059. on_mouse_over: Optional[EventType[()]] = None,
  1060. on_mouse_up: Optional[EventType[()]] = None,
  1061. on_scroll: Optional[EventType[()]] = None,
  1062. on_unmount: Optional[EventType[()]] = None,
  1063. **props,
  1064. ) -> "StickyBadge":
  1065. """Create the sticky badge.
  1066. Returns:
  1067. The sticky badge.
  1068. """
  1069. ...
  1070. sticky = StickyNamespace()