tsimport {useXDSLayer} from '@xds/core/Layer'
| Guidance | Practices |
|---|---|
| Do | Use context mode for anchor-positioned overlays relative to a trigger element, and fixed mode for manually positioned overlays at specific coordinates. |
| Do | Build on higher-level components like Popover, HoverCard, and Tooltip instead of using Layer directly for common overlay patterns. |
| Don't | Implement ARIA patterns directly in a Layer — leave accessibility semantics to the higher-level components that build on it. |