> Documentation index: https://developer.android.com/reference/llms.txt

# RemoteButtonGroupScope

Artifact: [androidx.wear.compose.remote:remote-material3](https://developer.android.com/jetpack/androidx/releases/wear-compose-remote.md.txt) [View Source](https://cs.android.com/search?q=file:androidx/wear/compose/remote/material3/RemoteButtonGroup.kt+class:androidx.wear.compose.remote.material3.RemoteButtonGroupScope) Added in [1.0.0-alpha16](https://developer.android.com/jetpack/androidx/releases/wear-compose-remote.md.txt#1.0.0-alpha16)


```
@RemoteLayoutScopeMarker
sealed interface RemoteButtonGroupScope
```

<br />

*** ** * ** ***

Scope for the children of a `RemoteButtonGroup`.

Each child should build its own modifier chain and chain `RemoteButtonGroupScope` modifiers (`weight`, `minWidth`, `animateWidth`) contiguously before any other modifiers; do not share a scope modifier instance across multiple children.

## Summary

| ### Public functions |
|---|---|
| `RemoteModifier` | `RemoteModifier.animateWidth()` Specifies that this item should animate its width when pressed, expanding its resting width by `RemoteButtonGroup`'s `expansionWidth` delta while neighboring items shrink accordingly. |
| `RemoteModifier` | `RemoteModifier.minWidth(minWidth: RemoteDp)` Sets the minimum width of this item, defaults to `RemoteButtonGroupDefaults.MinWidth`. |
| `RemoteModifier` | `RemoteModifier.weight(weight: RemoteFloat)` Size the element's width proportional to its `weight` relative to other weighted sibling elements in the `RemoteButtonGroup`. |

## Public functions

### RemoteModifier.animateWidth

Artifact: [androidx.wear.compose.remote:remote-material3](https://developer.android.com/jetpack/androidx/releases/wear-compose-remote.md.txt) [View Source](https://cs.android.com/search?q=file:androidx/wear/compose/remote/material3/RemoteButtonGroup.kt+function:animateWidth) Added in [1.0.0-alpha16](https://developer.android.com/jetpack/androidx/releases/wear-compose-remote.md.txt#1.0.0-alpha16)

```
fun RemoteModifier.animateWidth(): RemoteModifier
```

Specifies that this item should animate its width when pressed, expanding its resting width by `RemoteButtonGroup`'s `expansionWidth` delta while neighboring items shrink accordingly.

The animation needs touch actions, so it's skipped when the creation profile doesn't support them.

| Returns |
|---|---|
| `RemoteModifier` | a `RemoteModifier` that animates the item's width when pressed |

### RemoteModifier.minWidth

Artifact: [androidx.wear.compose.remote:remote-material3](https://developer.android.com/jetpack/androidx/releases/wear-compose-remote.md.txt) [View Source](https://cs.android.com/search?q=file:androidx/wear/compose/remote/material3/RemoteButtonGroup.kt+function:minWidth) Added in [1.0.0-alpha16](https://developer.android.com/jetpack/androidx/releases/wear-compose-remote.md.txt#1.0.0-alpha16)

```
fun RemoteModifier.minWidth(
    minWidth: RemoteDp = RemoteButtonGroupDefaults.MinWidth
): RemoteModifier
```

Sets the minimum width of this item, defaults to `RemoteButtonGroupDefaults.MinWidth`.

| Parameters |
|---|---|
| `minWidth: RemoteDp = RemoteButtonGroupDefaults.MinWidth` | The minimum width to use for this item. Must be a positive constant. |

| Returns |
|---|---|
| `RemoteModifier` | a `RemoteModifier` that sets the minimum width of the item to `minWidth` |

### RemoteModifier.weight

Artifact: [androidx.wear.compose.remote:remote-material3](https://developer.android.com/jetpack/androidx/releases/wear-compose-remote.md.txt) [View Source](https://cs.android.com/search?q=file:androidx/wear/compose/remote/material3/RemoteButtonGroup.kt+function:weight) Added in [1.0.0-alpha16](https://developer.android.com/jetpack/androidx/releases/wear-compose-remote.md.txt#1.0.0-alpha16)

```
fun RemoteModifier.weight(weight: RemoteFloat): RemoteModifier
```

Size the element's width proportional to its `weight` relative to other weighted sibling elements in the `RemoteButtonGroup`.

| Parameters |
|---|---|
| `weight: RemoteFloat` | The proportional width to give to this element, as a multiplier of the total available width. Must be a positive constant. |

| Returns |
|---|---|
| `RemoteModifier` | a `RemoteModifier` that sizes the element's width proportional to `weight` |