Component list
Value ranges
Component tree limits: 500 nodes / 32 levels of nesting / 256 KB.
Example
action is passed to onAction as ctx.action_id; the values of input and select are collected into ctx.inputs.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
All components, props, and value ranges available to blocks mini apps
| Component | Props |
|---|---|
vstack hstack | gap align padding + children |
zstack | align + children |
text | value size weight align |
button | label icon variant action disabled |
image | url width height fit alt |
icon | name size |
spacer | size |
divider | — |
progress | value max |
input | name placeholder value |
select | name value options |
| Prop | Allowed values |
|---|---|
size / gap / padding | xs small medium large xl |
align | start center end stretch |
weight | regular medium bold |
variant | primary secondary danger flat |
fit | contain cover fill |
E_INVALID_BLOCKS.{
type: "vstack",
gap: "small",
padding: "medium",
children: [
{ type: "text", value: "Table high score", weight: "bold", size: "large" },
{ type: "divider" },
{ type: "progress", value: 40, max: 100 },
{
type: "hstack",
gap: "small",
children: [
{ type: "button", label: "Raise", action: "raise", variant: "primary" },
{ type: "button", label: "Fold", action: "fold", variant: "flat" },
],
},
],
}
action is passed to onAction as ctx.action_id; the values of input and select are collected into ctx.inputs.Was this page helpful?
