Home Components Popover
React Popover Components
12 free React popovers built with Tailwind CSS and shadcn/ui conventions. Copy the code or install with the shadcn CLI. Great for inline editors, pickers, and contextual info.
Popover 1 : Reviews popover with an average star score, a live activity badge and progress bars for each star rating.Popover 2 : Dimensions popover with labelled inputs for width, max width, height and max height.Popover 3 : Pricing popover showing a plan name, monthly price, description and an Early Access savings note.Popover 4 : Volume popover with an orange slider, a live percentage readout and Mute and Maximum buttons.Popover 5 : Info popover with a centred product intro, a Get started external link button and a build number.Popover 6 : Sync popover with an animated progress bar that starts on open, with pause, resume and cancel controls.Popover 7 : Confirmation popover with a red warning icon, a Reset Session prompt and Go Back or Reset buttons.Popover 8 : Notes popover with a textarea and Discard and green Save Note buttons.Popover 9 : Filter popover with category checkboxes, a budget slider and a Reset all button.Popover 10 : Search popover with debounced filtering, a loading spinner, colour-coded results and keyboard shortcut hints.Popover 11 : Notifications popover with unread alerts, a new count badge, mark all as read and a View all button.Popover 12 : Wide location popover with an operational status badge, a description and a photo on the right side.
About React Popover Components A React popover is a small floating panel that opens next to its trigger and can hold interactive content, like a form or a set of controls. Watermelon UI popovers are built on the Radix UI Popover primitive with Tailwind CSS, so positioning, collision handling, focus management, and Escape to close are handled for you. Add one with the shadcn CLI, then put your content in PopoverContent.
When to use it Quick edit forms, like renaming an item in place. Filter or settings panels opened from a toolbar button. Pickers such as color, emoji, or date choosers. When to use something else Use Tooltip when you only need a short read-only hint on hover or focus. Use Dropdown Menu when the panel is a list of actions to choose from. Use Dialog when the content needs the user’s full attention or a lot of space. Frequently asked questions How do I open a shadcn popover on hover? Use HoverCard instead, because the Radix popover opens on click or from controlled state, not on hover. HoverCard takes openDelay and closeDelay, and is meant for previews, so keep forms and key actions in a click-opened popover.
How do I close a popover programmatically? Control it with open and onOpenChange on the Popover root, then set open to false from your code. This is common after a form inside it saves.
How do I change where the popover opens? Pass side and align to PopoverContent, for example side="top" align="start". Use sideOffset to change the gap between the trigger and the panel.
How do I make the popover match the trigger width? Give PopoverContent the class w-(--radix-popover-trigger-width). Radix sets that CSS variable to the trigger width.
How to use React Popover Components Start from a React project with Tailwind CSS and shadcn/ui set up. Next.js, Vite, Remix, and Astro all work. Run npx shadcn@latest add https://registry.watermelon.sh/r/popover-1.json to add the source files to your project. Import it where you need it, then edit the Tailwind classes and design tokens to match your product. Dependencies installed with it: lucide-react.
The code is yours: it lives in your repository, so there is no runtime package to keep updated. Watermelon UI is free and open source under the MIT license.
More: Free React components , UI library alternatives , guides .