A React component to render that renders its content in a popover
npm install @chakra-ui/popoverPopover is a non-modal dialog that floats around a trigger. It is used to
display contextual information to the user, and should be paired with a
clickable trigger element.
``sh
yarn add @chakra-ui/popover
npm i @chakra-ui/popover
`
`jsx`
import {
Popover,
PopoverTrigger,
PopoverContent,
PopoverHeader,
PopoverBody,
PopoverFooter,
PopoverArrow,
PopoverCloseButton,
} from "@chakra-ui/react"
When using this component, ensure the children passed to PopoverTrigger isref
focusable, user can tab to it using their keyboard, and it can take a . It
is critical for accessibility.
> A11y: When the Popover opens, focus is sent to the PopoverContent. When
> it closes, focus is returned to the trigger.
`jsx`
By default, the Popover doesn't render in a Portal. To make them display in a
portal, pass the usePortal prop.
> You might need to Inspect Element to see this in action. Notice the
> PopoverContent is rendered as a child of
`jsx
Header
This is the footer
``