<h2 id="threepanescaffold-modifier-scaffolddirective-paneorder-secondarypane-tertiarypane-primarypane">ThreePaneScaffold</h2>

<div class='sourceset sourceset-android'>Android</div>

```kotlin
@ExperimentalMaterial3XrApi
@Composable
public fun ThreePaneScaffold(
    modifier: SubspaceModifier,
    scaffoldDirective: PaneScaffoldDirective,
    paneOrder: ThreePaneScaffoldHorizontalOrder,
    secondaryPane: @Composable () -> Unit,
    tertiaryPane: (@Composable () -> Unit)? = null,
    primaryPane: @Composable () -> Unit,
)
```

#### Parameters

| | |
| --- | --- |
| modifier | The modifier to be applied to the layout. |
| scaffoldDirective | The top-level directives about how the scaffold should arrange its panes. |
| paneOrder | The horizontal order of the panes from start to end in the scaffold. |
| secondaryPane | The content of the secondary pane that has a priority lower then the primary pane but higher than the tertiary pane. |
| tertiaryPane | The content of the tertiary pane that has the lowest priority. |
| primaryPane | The content of the primary pane that has the highest priority. |