Open this example in the interactive library
Source code
// app/dashboard/layout.tsx
import type { ReactNode } from "react";
export default function SlotInsideNativePopover({
children,
activity,
}: {
children: ReactNode;
activity: ReactNode;
}) {
return (
<main>
{children}
<button popoverTarget="updates">Open updates</button>
<aside id="updates" popover="auto">
{activity}
</aside>
</main>
);
}
