Slot

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

Observes bind for Slot at the next owner-thread frame cutoff.

Retain caller-owned sources and editing state outside reevaluation. See Observe for shared snapshots, equal-value suppression, and cleanup; literal arguments follow Slot. Modifiers and parent data apply to the actual component, while the binding owns its sibling key.


@JvmName(name = "SlotStatea3c7818cbdc8_2")
fun UiScope.Slot(bind: SlotBinding? = null, highlightable: StateSource<Boolean>, modifier: Modifier = Modifier.Empty, key: ElementKey<*>? = null, content: UiScope.() -> Unit? = null)(source)

Observes highlightable for Slot at the next owner-thread frame cutoff.

Retain caller-owned sources and editing state outside reevaluation. See Observe for shared snapshots, equal-value suppression, and cleanup; literal arguments follow Slot. Modifiers and parent data apply to the actual component, while the binding owns its sibling key.


@JvmName(name = "SlotStatea3c7818cbdc8_3")
fun UiScope.Slot(bind: StateSource<SlotBinding?>, highlightable: StateSource<Boolean>, modifier: Modifier = Modifier.Empty, key: ElementKey<*>? = null, content: UiScope.() -> Unit? = null)(source)

Observes bind, highlightable for Slot at the next owner-thread frame cutoff.

Retain caller-owned sources and editing state outside reevaluation. See Observe for shared snapshots, equal-value suppression, and cleanup; literal arguments follow Slot. Modifiers and parent data apply to the actual component, while the binding owns its sibling key.


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.