Standalone Popover
Abstracting the Popover component so that it can be used without PopoverDisclosure
or PopoverAnchor
. This example uses the getAnchorRect
prop to determine the position of the popup.
import "./style.css";
import { useState } from "react";
import {
} from "./popover.jsx";
export default function Example() {
const [open, setOpen] = useState(false);
return (
<div>
Accept invite
We are going to discuss what we have achieved on the project.
</div>
);
}