--- title: Popover description: Displays rich content in a portal, triggered by a button. base: base component: true links: doc: https://base-ui.com/react/components/popover api: https://base-ui.com/react/components/popover#api-reference --- ## Installation Command Manual ```bash npx shadcn@latest add popover ``` Install the following dependencies: ```bash npm install @base-ui/react ``` 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. ```