SwiftUI.js
Components

ControlGroup

ControlGroup clusters related actions under a shared label. The component keeps SwiftUI's grouped-control mental model while using standard web grouping semantics.

ControlGroup clusters related actions under a shared label. The component keeps SwiftUI's grouped-control mental model while using standard web grouping semantics.

Examples

Default

Preview unavailable for this example in the static docs build.

Show code
<ControlGroup label="Formatting">
      <Button>Bold</Button>
      <Button>Italic</Button>
      <Button>Underline</Button>
    </ControlGroup>

API

PropTypeRequiredDescription
labelReactNodeNoOptional label shown above or alongside the controls.
orientation'horizontal' | 'vertical'NoThe axis used to arrange the controls. Default: 'horizontal'

Inherits additional props from IBaseComponent.

Overview

ControlGroup clusters related actions under a shared label. The component keeps SwiftUI's grouped-control mental model while using standard web grouping semantics.

Notes

  • Use label to provide the group's accessible name.
  • Use orientation="vertical" when actions should stack instead of sit inline.

On this page