Popover

Popover displays contextual content that highlights a specific element in the UI.

@radix-ui/react-popover

@lucide-react

Installation


1

Install the following dependencies:

npx shadcn@latest add https://sbthemes-storev2.vercel.app/r/popover.json

Examples


Position

Align


API Reference

This component is based on the <div> element and supports all of its props and adds:

Trigger

A button that opens the popover.

PropTypeDefault
asChildbooleanfalse

Content

PropTypeDefault
sidetop, right, bottom, lefttop
alignstart, center, endcenter
sideOffsetnumber8