sltowl

Matte Context Menu

Component

About

A right-click context menu that opens at the pointer position over a target element, showing action items with icons and live status feedback below it. Ported from the original vanilla JS/HTML Matte UI component by SLtowl (MIT licensed).

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

Code

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

Usage.tsx

import MatteContextMenu from "@/components/ui/matte-context-menu";

export default function MatteContextMenuDemo() {
  return (
    <div className="w-full h-screen flex items-center justify-center bg-[#f5f4f2]">
      <div className="w-full max-w-[288px]">
        <MatteContextMenu onSelect={(values) => console.log(values)} />
      </div>
    </div>
  );
}

More by sltowl

View all
  • Playback Scrubber

    Playback Scrubber

    43
  • Matte Alert Feedback

    Matte Alert Feedback

    39
  • Notification Stack

    Notification Stack

    29
  • 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

    11
  • Undo Feedback

    Undo Feedback

    8