+ {gridPositions.map(({row, col}) => {
+ const key = `${row}-${col}`
+ const isCenter = row === 'center' && col === 'center'
+
+ return (
+
+
+ {row} / {col}
+
+ {isCenter ? (
+
setOpenCell(key)}
+ onClose={() => setOpenCell(null)}
+ renderAnchor={props => }
+ overlayProps={{
+ role: 'dialog',
+ 'aria-modal': true,
+ 'aria-label': 'Anchor Position Grid Demo',
+ }}
+ focusZoneSettings={{disabled: true}}
+ preventOverflow={false}
+ cssAnchorPositioningSettings={cssAnchorPositioningSettings}
+ >
+ {hoverCard}
+
+ ) : null}
+
+ )
+ })}
+