​​React​CSS,Playwright,Popover API,TypeScript

Thumbnail of post image 159

ReactでPopover APIを使い、ボタンの下にメニューを出す方法です。popoverとpopoverTargetを付けるだけで開閉でき、外側のクリックやEscで閉じます。項目を選んだら閉じる形、位置の合わせ方、開閉の状態の受け ...