Uh oh!
There was an error while loading. Please reload this page.
Conversation
|
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/primer/primer-components/EVNXEHNACY2xaj7UCuVCHCZwiHQR |
Uh oh!
There was an error while loading. Please reload this page.
| ### Demo | ||
| See [this CodePen](https://codepen.io/team/GitHub/pen/OJbPKNZ) for a demo of `useAnchoredPosition`. |
There was a problem hiding this comment.
Is there any way we can get this demo in the page? I'm worried about this code not staying up to date with the code in the actual useAnchoredPosition hook. Either that or import the hook from the PRC package in codepen
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: emplums <emplums@github.com>
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This PR adds a generic behavior for positioning a floating element next to an anchor. For details, see docs.
Play with the behavior: https://codepen.io/team/GitHub/pen/OJbPKNZ
See the rendered documentation. Note: this was intentionally not added to the documentation nav page since we decided to leave these behaviors undocumented until they are used in components.
Closes#1079
Merge checklist
index.d.ts) if necessary