---
title: segmented-control
description: A horizontal set of mutually exclusive segments with one `selected` — the iOS-style alternative to a dropdown for two to four choices.
status: shipped
url: https://getairframe.com/framewerk/reference/nodes/segmented-control
---

> Part of the Framewerk docs. Index of every page: /framewerk/llms.txt

# `segmented-control`

A horizontal set of mutually exclusive segments with one `selected` — the iOS-style alternative to a dropdown for two to four choices.

## Example

**segmented-control**

```json
{
  "id": "f",
  "layout": {
    "_id": "root",
    "type": "column",
    "gap": 12,
    "padding": 16,
    "children": [
      {
        "_id": "s",
        "type": "segmented-control",
        "items": [
          "Day",
          "Week",
          "Month"
        ],
        "selected": "Week"
      }
    ]
  }
}
```

## States

`selected`. Common to every node: `hover` / `press` / `focus` CSS bags, `showWhen` / `hideWhen`, `animate`.

## Stability

This node type is part of the format contract: adding an optional prop is additive; removing the node or narrowing an existing prop is breaking. Prop tables are generated from the schema; this page carries the prose.
