Sean Hello

Base Popover

Buttons 6

About

A floating panel that appears on demand. Built on top of Base UI Popover component with shadcn styling.

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

Code

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

Usage.tsx

import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/base-popover';
import { Button } from '@/components/ui/base-button';
import { MoveDown, MoveLeft, MoveRight, MoveUp } from 'lucide-react';

export default function BasePopoverDemo() {
  return (
    <div className="flex items-center justify-center gap-6">
      <Popover>
        <PopoverTrigger render={<Button variant="outline" />}>
          <MoveLeft />
          Left
        </PopoverTrigger>
        <PopoverContent className="max-w-[250px] text-sm space-y-2" side="left">
          <p className="font-medium">Left Position</p>
          <p className="text-muted-foreground">This popover appears on the left side of the trigger button.</p>
        </PopoverContent>
      </Popover>

      <Popover>
        <PopoverTrigger render={<Button variant="outline" />}>
          <MoveUp />
          Top
        </PopoverTrigger>
        <PopoverContent className="max-w-[250px] text-sm space-y-2" side="top">
          <p className="font-medium">Top Position</p>
          <p className="text-muted-foreground">This popover appears above the trigger button.</p>
        </PopoverContent>
      </Popover>

      <Popover>
        <PopoverTrigger render={<Button variant="outline" />}>
          <MoveRight />
          Right
        </PopoverTrigger>
        <PopoverContent className="max-w-[250px] text-sm space-y-2" side="right">
          <p className="font-medium">Right Position</p>
          <p className="text-muted-foreground">This popover appears on the right side of the trigger button.</p>
        </PopoverContent>
      </Popover>

      <Popover>
        <PopoverTrigger render={<Button variant="outline" />}>
          <MoveDown />
          Bottom
        </PopoverTrigger>
        <PopoverContent className="max-w-[250px] text-sm space-y-2" side="bottom">
          <p className="font-medium">Bottom Position</p>
          <p className="text-muted-foreground">This popover appears below the trigger button.</p>
        </PopoverContent>
      </Popover>
    </div>
  );
}

Dependencies

More by Sean Hello

View all
  • 3D Testimonails

    3D Testimonails

    3.7K
  • Line Charts 9

    Line Charts 9

    727
  • Alert

    Alert

    512
  • Line Charts 6

    Line Charts 6

    421
  • Area Charts 1

    Area Charts 1

    410
  • Scroll Area

    Scroll Area

    381
  • Navigation Menu

    Navigation Menu

    356
  • Statistics Card 7

    Statistics Card 7

    336

More in Buttons

View all
  • Button

    Button

    20
  • Button

    Button

    3
  • Button Group

    Button Group

    18
  • Button

    Button

    149
  • Icon Label Subtext Button

    Icon Label Subtext Button

    69
  • Button

    Button

    9
  • Button

    Button

    37
  • Texture Button

    Texture Button

    113