// Copyright (c) Meta Platforms, Inc. and affiliates. /** * @file anchorName.ts * @input HTMLElement with CSS anchor-name property * @output Helpers for managing comma-separated anchor-name lists * @position Utility; used by useLayer for multi-anchor support * * SYNC: When modified, update: * - /packages/core/src/Layer/useLayer.tsx (imports from here) */ /** * CSS `anchor-name` is a comma-separated list, so multiple layers can anchor to * the same element (e.g. several TopNavMegaMenus anchored to one