Composable Function

RemoteButtonGroup

Layout component to implement an expressive group of buttons in a row.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free

RemoteButtonGroup

Android
@Composable
@RemoteComposable
public fun RemoteButtonGroup(
    modifier: RemoteModifier = RemoteModifier,
    spacing: RemoteDp = RemoteButtonGroupDefaults.Spacing,
    contentPadding: RemotePaddingValues = RemoteButtonGroupDefaults.fullWidthPaddings(),
    verticalAlignment: RemoteAlignment.Vertical = RemoteAlignment.CenterVertically,
    content: @RemoteComposable @Composable (RemoteRowScope.() -> Unit),
)

Layout component to implement an expressive group of buttons in a row.

Example of 3 buttons, the middle one bigger:

Parameters

modifier Modifier to be applied to the button group
spacing the amount of spacing between buttons
contentPadding The spacing values to apply internally between the container and the content
verticalAlignment the vertical alignment of the button group's children.
content the content and properties of each button. The Ux guidance is to use no more than 3 buttons within a ButtonGroup.