Loading...
Loading...
Build Python-native web apps with Mesop. Triggers when users want to build, debug, or deploy Mesop applications, including AI chat interfaces, internal tools, and ML demos.
npx skill4agent add outlinedriven/odin-codex-plugin mesopmesopmain.py@me.page(path="/")@me.stateclassme.boxme.textme.inputme.Styleimport mesop as me
import mesop.labs as mel # For labs components like chat@me.stateclass
class State:
count: int = 0
input_value: str = "" # Immutable default
# items: list[str] = field(default_factory=list) # Mutable default patternstate = me.state(State)yieldasync defawaitwithwith me.box(style=me.Style(display="flex")):
me.text("Child 1")
me.button("Child 2")keyme.focus_componentme.scroll_into_viewe.keykeyvalueon_bluron_input@me.stateclassdataclasses.field(default_factory=...)@me.stateclassreferences/core-patterns.mdreferences/components-reference.mdreferences/styling-and-layouts.mdreferences/deployment-and-config.mdreferences/web-components.md