Popover

A floating glass panel anchored to a trigger element.

Install

npx shadcn add @clearly/popover

Preview

Live Popover component — see usage below.

Usage

import { Popover } from "@/components/ui/popover"

<Popover />

Every Clearly component also accepts glass (subtle·medium·strong), specular and className.

Props

PropTypeDefaultDescription
openbooleanControlled open state.
onOpenChange(open: boolean) => voidOpen-state callback.
align"start" | "center" | "end""center"Alignment of the content.
sideOffsetnumber4Distance from trigger in px.
glass"Subtle" | "Medium" | "Strong""Medium"Glass depth of the popover content.
specularbooleantrueDirectional specular highlight.
radiusnumber18Corner radius of the content in px.