Skip to content

Row

Lays its children out side by side.

Use it for: Put a label beside a value, or two buttons next to each other.

  • CategoryLayout
  • ChildrenAny number
  • DataNone
  • ActionNone

None. Write "props": {}; the look comes from preset and style.

Every component also accepts id (required, unique on its screen), and the optional preset and style described in Style options.

{
"id": "summary",
"type": "Row",
"props": {},
"style": {
"justify": "space-between",
"align": "center"
},
"children": [
{
"id": "summary-label",
"type": "Text",
"props": {
"text": "This week"
}
},
{
"id": "summary-count",
"type": "Badge",
"props": {
"text": "4 done"
}
}
]
}