import * as React from "react"; import { useStyletron } from "baseui"; import { Button } from "baseui/button"; import { StatefulPopover } from "baseui/popover"; import { ParagraphSmall } from "baseui/typography"; export default function Example() { const [css, theme] = useStyletron(); const contentCx = css({ padding: theme.sizing.scale500, maxWidth: "300px", }); return ( (
content render prop is passed a close() callback so it you can manually trigger popover close from within
)} >
); }