Mixins / foldkit-mixins-ui
ScrollAreaSlots
const · packages/mixins-ui/src/scrollArea.ts:11
const ScrollAreaSlots: Slots.Contract<{
readonly viewport: Slot.UnnamedSlot<
Capability.Capability<
'Container',
readonly [
Capability.Capability<
'Interactive',
readonly [Capability.Capability<'Base', readonly []>]
>,
]
>,
readonly Slot.EventName[],
readonly Slot.AttributeName[],
readonly Slot.RequirementName[],
boolean
>
}>A scroll area publishes one slot; it owns no state, messages, or bundles. The browser owns scrolling; this owns the box: which axes may scroll and how the bars read. The height that makes it scroll stays the caller's (a mixin beside the style), since only the caller knows the layout it sits in.