context-and-collection
core234 linesSource
Building compound components with createContext (error-throwing consumer hook) and createContextScope (nested composition with scope threading). createCollection for DOM-ordered item tracking via data attributes + ResizeObserver pattern. Scope threading required for components that may be nested within themselves (Accordion inside Accordion, nested Menus, etc.).