--- title: Popover description: Displays rich content in a portal, triggered by a button. component: true links: doc: https://www.radix-ui.com/docs/primitives/components/popover api: https://www.radix-ui.com/docs/primitives/components/popover#api-reference --- ## Installation CLI Manual ```bash npx shadcn@latest add popover ``` Install the following dependencies: ```bash npm install @radix-ui/react-popover ``` Copy and paste the following code into your project. Update the import paths to match your project setup. ## Usage ```tsx showLineNumbers import { Popover, PopoverContent, PopoverTrigger, } from "@/components/ui/popover" ``` ```tsx showLineNumbers Open Place content for the popover here. ```