Skip to main content
161

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Android docs
LayoutAndroid

Button group

Lay out a small set of related native actions horizontally or vertically.

Public APILumenButtonGroupAndroid / Compose

Native example

Use Button group

Use for a small set of related actions. Do not use it for single selection; use Segmented control or Radio group instead.

Button group rendered in the Android phone emulator Lumen playground
Verified runtime captureAndroid phone emulator
kotlin
LumenButtonGroup {
    LumenButton(onClick = ::save) { Text("Save") }
    LumenButton(onClick = ::cancel, intent = LumenButtonIntent.Secondary) { Text("Cancel") }
}

Reference

Public API

The primary shared and platform-specific options exposed by LumenButtonGroup.

APIValues or typeDefaultDescription
orientationhorizontal · verticalhorizontalControls action layout.
contentNative buttonsRequiredProvides independently operable actions.

Native behavior

Design and accessibility

When to use it

Use for a small set of related actions. Do not use it for single selection; use Segmented control or Radio group instead.

Accessibility

The group contains each native button without combining action names or changing activation behavior.

Shared component

Available on other platforms

React NativeApple / SwiftUI
Android docsCompose module