---
title: ControlGroup
description: A SwiftUI ControlGroup component for grouping interactive controls.
sourceCodeUrl: 'https://github.com/expo/expo/tree/main/packages/expo-ui'
packageName: '@expo/ui'
platforms: ['ios', 'tvos']
---

<AgentInstructions>

## Submitting Feedback

If this page contains errors, outdated information, or gaps that blocked you from completing a task, report it so the docs can be improved:

curl -X POST https://api.expo.dev/v2/feedback/docs-send -H 'Content-Type: application/json' -d '{"url":"/versions/latest/sdk/ui/swift-ui/controlgroup/","feedback":"🤖 Agent feedback: <specific, actionable description>"}'

Only submit when you have something specific and actionable to report.

</AgentInstructions>

# ControlGroup

A SwiftUI ControlGroup component for grouping interactive controls.
iOS, tvOS

> For the complete documentation index, see [llms.txt](/llms.txt). Use this file to discover all available pages.

Expo UI ControlGroup matches the official SwiftUI [ControlGroup API](https://developer.apple.com/documentation/swiftui/controlgroup). When placed inside a [`Menu`](/versions/latest/sdk/ui/swift-ui/menu), the children are rendered as a compact horizontal row of buttons.

> **Note:** On tvOS, ControlGroup requires tvOS 17.0 or later.

## Installation

```sh
npx expo install @expo/ui
```

If you are installing this in an [existing React Native app](/bare/overview), make sure to [install `expo`](/bare/installing-expo-modules) in your project.

## Usage

### Basic control group

A control group inside a menu, these render as a horizontal row of icon buttons.

```tsx
import { Host, Menu, ControlGroup, Button } from '@expo/ui/swift-ui';

export default function BasicControlGroupExample() {
  return (
    <Host matchContents>
      <Menu label="Options" systemImage="ellipsis.circle">
        <ControlGroup>
          <Button systemImage="plus" label="Add" onPress={() => console.log('Add')} />
          <Button systemImage="star" label="Favorite" onPress={() => console.log('Favorite')} />
          <Button
            systemImage="square.and.arrow.up"
            label="Share"
            onPress={() => console.log('Share')}
          />
        </ControlGroup>
        <Button label="Other Action" onPress={() => console.log('Other')} />
      </Menu>
    </Host>
  );
}
```

## API

```tsx
import { ControlGroup } from '@expo/ui/swift-ui';
```

## Component

### `ControlGroup`

Supported platforms: iOS, tvOS.

Type: React.[Element](https://www.typescriptlang.org/docs/handbook/jsx.html#function-component)<[ControlGroupProps](#controlgroupprops)\>

ControlGroupProps

### `children`

Supported platforms: iOS, tvOS 17.0+.

Type: [ReactNode](https://reactnative.dev/docs/react-node)

The control group's content. Can contain `Button`, `Toggle`, `Picker`, or other interactive controls.

### `label`

Supported platforms: iOS 16.0+, tvOS 17.0+.

Optional • Type: [ReactNode](https://reactnative.dev/docs/react-node)

The label for the control group. Can be a string for simple text labels, or a `Label` component for custom label content. When omitted, the control group has no label.

### `systemImage`

Supported platforms: iOS 16.0+, tvOS 17.0+.

Optional • Type: [SFSymbols7_0](https://github.com/nandorojo/sf-symbols-typescript)

An SF Symbol name to display alongside the label. Only used when `label` is a string.

#### Inherited Props

-   [CommonViewModifierProps](/versions/latest/sdk/ui/swift-ui/modifiers)
