Popover

Floating panel built on Radix Popover. Use for mini-inspectors, quick settings, and overflow controls.

Install

npx shadcn@latest add https://substrate.georgedrury.co.uk/r/popover

Examples

Default

"use client"

import { RiSettings3Line } from "@remixicon/react"

Components

ComponentDescription
PopoverRoot wrapper (Radix Popover.Root)
PopoverTriggerElement that opens the popover
PopoverContentFloating panel with optional arrow
PopoverClosePositioned close button

Props (PopoverContent)

PropTypeDefaultDescription
showArrowboolean—Show a directional arrow
sideOffsetnumber6Gap between trigger and popover