Skip to content

Slot

@Composable



fun Slot(texture: String = "slot", modifier: Modifier = Modifier)

Renders a single inventory slot graphic and records its absolute screen position.

Triggers ComposeContainerMenuBase.updateSlotData once all named groups and the player group have reported their positions for this layout pass.

Parameters

  • modifier: Additional modifiers applied to the slot layout node.