Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

fix recipe doc (#1180)

Akshay Agrawald5b70940b6ce
diff --git a/docs/recipes.md b/docs/recipes.md
index f83534e7dd..9af8bf54dc 100644
--- a/docs/recipes.md
+++ b/docs/recipes.md
@@ -337,7 +337,14 @@ buttons = mo.ui.array(
]
)
-mo.hstack(buttons)
+# Put the buttons array into the table
+table = mo.ui.table(
+ {
+ "Action": ["Action Name"] * len(buttons),
+ "Trigger": list(buttons),
+ }
+)
+table
```
3. Get the state value