Composable Function

RemoteButtonGroup

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

RemoteButtonGroup

Source set: Android
@Composable
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 RemoteButtonGroup.
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: