--- title: Popover description: Displays rich content in a portal, triggered by a button. component: true radix: link: https://www.radix-ui.com/docs/primitives/components/popover api: https://www.radix-ui.com/docs/primitives/components/popover#api-reference --- ## Installation ```bash npx shadcn-ui add popover ``` Manual Installation 1. Install the `@radix-ui/react-popover` component from radix-ui: ```bash npm install @radix-ui/react-popover ``` 2. Copy and paste the following code into your project. This is the `` primitive. You can place it in a file at `components/ui/popover.tsx`. ## Usage ```tsx import { Popover, PopoverContent, PopoverTrigger, } from "@/components/ui/popover" ``` ```tsx Open Place content for the popover here. ```