Mixins / foldkit-mixins-ui
ToastSlots
const · packages/mixins-ui/src/toast.ts:17
const ToastSlots: Slots.Contract<{
readonly container: Slot.UnnamedSlot<
Capability.Capability<
'Container',
readonly [
Capability.Capability<
'Interactive',
readonly [Capability.Capability<'Base', readonly []>]
>,
]
>,
readonly Slot.EventName[],
readonly [Attr.AttrToken<'role'>],
readonly Slot.RequirementName[],
boolean
>
readonly entry: Slot.UnnamedSlot<
Capability.Capability<
'Container',
readonly [
Capability.Capability<
'Interactive',
readonly [Capability.Capability<'Base', readonly []>]
>,
]
>,
readonly Slot.EventName[],
readonly [Attr.AttrToken<'role'>],
readonly Slot.RequirementName[],
boolean
>
}>Toast is a nested Submodel: one live-region container plus an entry
per toast. The resolver runs once per bundle and each base attribute
passes through by identity.
Entries own hover and (when swipe is configured) pointer handlers, none
of which has an Event token — but the resolver still refuses a second
owner by event name. The dismiss control is drawn by the consumer's
entryToView and is not a slot: its dismiss bundle passes through
inside the entry's content.