Slot

fun UiScope.Slot(bind: SlotBinding? = null, highlightable: Boolean = true, modifier: Modifier = Modifier.Empty, key: ElementKey<*>? = null, content: UiScope.() -> Unit? = null)(source)

Emits one 18 by 18 inventory slot with an optional item root or synchronized binding.

A bound slot observes authoritative menu storage before each frame and delegates pointer transactions through the runtime protocol. An unbound slot may contain zero or one caller-defined 16 by 16 item root.

Receiver

active owner-thread screen scope.

Parameters

bind

optional immutable synchronized inventory locator.

highlightable

whether pointer hover selects the profile highlight layers.

modifier

active behavior applied before built-in inventory handling.

key

optional stable sibling identity.

content

optional zero-or-one-root unbound item presentation.

Throws

when binding and content conflict, callback cardinality is invalid, or a binding cannot be resolved.

when no runtime screen evaluation is active.