Compose Component

ThreePaneScaffold

A pane scaffold composable that can display up to three panes in the order that ThreePaneScaffoldHorizontalOrder specifies, and allocate margins and spacers according to PaneScaffoldDirective.

ThreePaneScaffold

Source set: Android
@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.

Last updated: