# Button

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

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.

- Category: Visual
- Children: None
- Data: None
- Action: On tap: go to a route or run an operation

## Props

| 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](https://docs.ynch.ai/reference/style.md).

## Example

From the fitness example project:

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