sltowl

Matte Popover

Component

About

A dark, pinnable info popover that opens from a trigger button, auto-positions itself above or below the trigger, and closes on outside click, Escape, or blur. Ported to React from the original HTML/CSS/JS component by SLtowl (sl-ui-library), MIT licensed.

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

Code

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

Usage.tsx

import MattePopoverOverlay from "@/components/ui/matte-popover-overlay";

export default function MattePopoverOverlayDemo() {
  return (
    <div
      className="flex min-h-[560px] w-full items-center justify-center"
      style={{
        background:
          "radial-gradient(ellipse at 25% 0%, #f7f8f9, transparent 95%), linear-gradient(145deg, #eef0f2, #e4e7eb)",
      }}
    >
      <MattePopoverOverlay />
    </div>
  );
}

More by sltowl

View all
  • Playback Scrubber

    Playback Scrubber

    43
  • Matte Alert Feedback

    Matte Alert Feedback

    41
  • Notification Stack

    Notification Stack

    30
  • Time Window Slider

    Time Window Slider

    20
  • Commands Menu

    Commands Menu

    14
  • Matte Meter Slider

    Matte Meter Slider

    14
  • Matte Opacity Slider

    Matte Opacity Slider

    12
  • Undo Feedback

    Undo Feedback

    8