Edwin Vakayil

Popover (Base UI)

Component

About

A popover built on Base UI popover primitives with side-aware panel motion, optional anchor support, and size-aware content transitions.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Popover (Base UI) to your project and fits it to your theme.

Code

How Popover (Base UI) is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import {
  Popover,
  PopoverTrigger,
  PopoverContent,
} from "@/components/ui/b-popover";

export default function PopoverDemo() {
  return (
    <div className="flex min-h-64 items-center justify-center">
      <Popover>
        <PopoverTrigger>Open popover</PopoverTrigger>
        <PopoverContent>
          <div className="space-y-1.5">
            <h4 className="text-sm font-medium">Dimensions</h4>
            <p className="text-sm opacity-70">
              Set the dimensions for the layer below.
            </p>
          </div>
        </PopoverContent>
      </Popover>
    </div>
  );
}

Dependencies

More by Edwin Vakayil

View all
  • Origin Button

    Origin Button

    769
  • Infinite Ribbon

    Infinite Ribbon

    524
  • Shimmer Text

    Shimmer Text

    402
  • Dia Text

    Dia Text

    345
  • Icon Bar

    Icon Bar

    244
  • FAQ Pro

    FAQ Pro

    224
  • Verified Badge

    Verified Badge

    212
  • New Card

    New Card

    183