<div class='sourceset sourceset-common'>Common</div>

```kotlin
@ExperimentalMaterial3AdaptiveComponentOverrideApi
interface AnimatedPaneOverride
```

Interface that allows libraries to override the behavior of [AnimatedPane](/jetpack-compose/androidx.compose.material3.adaptive/adaptive-layout/composable-functions/AnimatedPane).

To override this component, implement the member function of this interface, then provide the
implementation to [AnimatedPaneOverride](/jetpack-compose/androidx.compose.material3.adaptive/adaptive-layout/interfaces/AnimatedPaneOverride) in the Compose hierarchy.

## Functions

<h2 id="role-scaffoldvalue">Overload 1</h2>

```kotlin
@Composable
    fun <
        Role : PaneScaffoldRole,
        ScaffoldValue : PaneScaffoldValue<Role>,
    > AnimatedPaneOverrideScope<Role, ScaffoldValue>.AnimatedPane()
```

Behavior function that is called by the [AnimatedPane](/jetpack-compose/androidx.compose.material3.adaptive/adaptive-layout/composable-functions/AnimatedPane) composable.