Skip to content

TabContainerPanel

@Composable



fun TabContainerPanel(
    contentWidth: Int = DEFAULT_CONTENT_WIDTH, 
    modifier: Modifier = Modifier, 
    builder: TabContainerScope.() -> Unit
)

A ContainerPanel whose contents are switched between tabs, following the same container/player-inventory layout as ContainerPanel.

Parameters

  • contentWidth: Width of the panel's content area, in pixels. Defaults to 9 slots wide.

  • modifier: Additional modifiers applied to the outer TabPanel.

  • builder: Declares the tabs; see TabContainerScope.