# RemoteButtonGroupScope

> Scope for the children of a [RemoteButtonGroup].

## API Reference

> Source set: Android

```kotlin
public sealed interface RemoteButtonGroupScope
```

Scope for the children of a [RemoteButtonGroup](https://composables.com/jetpack-compose/androidx.wear.compose.remote/remote-material3/composable-functions/RemoteButtonGroup/api.md).

Each child should build its own modifier chain and chain [RemoteButtonGroupScope](https://composables.com/jetpack-compose/androidx.wear.compose.remote/remote-material3/interfaces/RemoteButtonGroupScope/api.md) modifiers
(`weight`, `minWidth`, `animateWidth`) contiguously before any other modifiers; do not share a
scope modifier instance across multiple children.

## Functions

### weight

> Source set: Android

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

Size the element's width proportional to its `weight` relative to other weighted sibling
elements in the [RemoteButtonGroup](https://composables.com/jetpack-compose/androidx.wear.compose.remote/remote-material3/composable-functions/RemoteButtonGroup/api.md).

#### Parameters

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

#### Return

a [RemoteModifier](https://composables.com/jetpack-compose/androidx.compose.remote/remote-creation-compose/interfaces/RemoteModifier/api.md) that sizes the element's width proportional to [weight](https://composables.com/jetpack-compose/androidx.wear.compose/compose-foundation/functions/weight/api.md)

### minWidth

> Source set: Android

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

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

#### Parameters

| | |
| --- | --- |
| minWidth | The minimum width to use for this item. Must be a positive constant. |

#### Return

a [RemoteModifier](https://composables.com/jetpack-compose/androidx.compose.remote/remote-creation-compose/interfaces/RemoteModifier/api.md) that sets the minimum width of the item to [minWidth](#minwidth)

### animateWidth

> Source set: Android

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

Specifies that this item should animate its width when pressed, expanding its resting width
by [RemoteButtonGroup](https://composables.com/jetpack-compose/androidx.wear.compose.remote/remote-material3/composable-functions/RemoteButtonGroup/api.md)'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.

#### Return

a [RemoteModifier](https://composables.com/jetpack-compose/androidx.compose.remote/remote-creation-compose/interfaces/RemoteModifier/api.md) that animates the item's width when pressed
