Skip to content

Floating content anchored to a trigger, drawn as an opaque Mac OS X menu sheet with a hairline border and float shadow, or as a smoked HUD panel with variant="hud".

Installation

Requires the theme. Register the @skeuomorph namespace and add @skeuomorph/skeuomorph first, as shown in the installation guide. The CLI also pulls it in as a dependency.

pnpm dlx shadcn@latest add @skeuomorph/popover

Without the namespace, install straight from the URL:

pnpm dlx shadcn@latest add https://ui-skeuomorph.vercel.app/r/popover.json

Usage

import {
  Popover,
  PopoverContent,
  PopoverTrigger,
} from "@/components/ui/popover"
<Popover>
  <PopoverTrigger>Open</PopoverTrigger>
  <PopoverContent>Place content for the popover here.</PopoverContent>
</Popover>

Examples

HUD

variant="hud" draws the smoked black heads-up panel of Aqua inspectors, with white text and no blur.

<PopoverContent variant="hud">...</PopoverContent>