Mixins / foldkit-mixins-ui
TabsSlots
const · packages/mixins-ui/src/tabs/slots.ts:19
const TabsSlots: Slots.Contract<{ readonly root: Slot.UnnamedSlot<Capability.Capability<"Container", readonly [Capability.Capability<"Interactive", readonly [Capability.Capability<"Base", readonly []>]>]>, readonly Slot.EventName[], readonly Slot.AttributeName[], readonly Slot.RequirementName[], boolean>; readonly tablist: 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 item: Slot.UnnamedSlot<Capability.Capability<"Container", readonly [Capability.Capability<"Interactive", readonly [Capability.Capability<"Base", readonly []>]>]>, readonly Slot.EventName[], readonly Slot.AttributeName[], readonly Slot.RequirementName[], boolean>; readonly tab: Slot.UnnamedSlot<Capability.Capability<"Interactive", readonly [Capability.Capability<"Base", readonly []>]>, readonly [Event.EventToken<"click">, Event.EventToken<"keydown">], readonly [Attr.AttrToken<"role">, Attr.AttrToken<"aria-selected">, Attr.AttrToken<"disabled">, Attr.AttrToken<"aria-disabled">], readonly Slot.RequirementName[], boolean>; readonly label: Slot.UnnamedSlot<Capability.Capability<"Container", readonly [Capability.Capability<"Interactive", readonly [Capability.Capability<"Base", readonly []>]>]>, readonly Slot.EventName[], readonly Slot.AttributeName[], readonly Slot.RequirementName[], boolean>; readonly icon: Slot. …;Tabs is a nested Submodel: one tablist group plus a tab/panel pair per
item, so the resolver runs once per group and each base ChildAttribute
bundle passes through by identity.
Enabled tabs own click through the base OnClick; a Behavior adding its
own click handler is a conflict rather than a second silent owner. Disabled
tabs publish no click, so the contract still lists it as allowed.
indicator and highlight have no upstream bundle: they are this
package's, drawn first in the tablist, for the marker under the chosen tab
and the hover that follows the pointer, which fluid moves. So are the
rest: item holds a tab and its close button side by side (a button in
a button is not allowed), and label and icon are the tab's words,
trimmed in a box of their own, and a mark before them.