Skip to content

Button

A button that goes to another screen or runs an operation.

Use it for: The only component that reacts to a tap, apart from submitting a Form.

  • CategoryVisual
  • ChildrenNone
  • DataNone
  • ActionOn tap: go to a route or run an operation
Prop Required Accepts What it does
label Yes text, up to 200 characters The visible label, also read by VoiceOver.
disabled No true or false Show it greyed out and ignore taps.

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

From the fitness example project:

{
"id": "view",
"type": "Button",
"props": {
"label": "View workouts"
},
"action": {
"type": "navigate",
"routeId": "workouts",
"parameters": {}
}
}