prebuiltui

Dropdown Menu

Buttons

About

Here is Dropdown Menu component

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

Code

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

Usage.tsx

import React from "react";


export default function Example() {
    return (
        <div className="flex flex-col w-32 text-sm">
            <button className="peer w-full text-left px-4 pr-2 py-2 border rounded bg-white text-gray-700 border-gray-300 shadow-sm hover:bg-gray-50 focus:outline-none">
                <span>Open Menu</span>
            </button>
        
            <ul className="hidden overflow-hidden right-0 peer-focus:block w-40 bg-white border border-gray-300 rounded shadow-md mt-2 py-1">
                <li className="px-4 py-2 hover:bg-gray-500/10 cursor-pointer">New file</li>
                <li className="px-4 py-2 hover:bg-gray-500/10 cursor-pointer">Copy link</li>
                <li className="px-4 py-2 hover:bg-gray-500/10 cursor-pointer">Edit file</li>
                <li className="px-4 py-2 hover:bg-red-500/10 text-red-500 cursor-pointer">Delete file</li>
            </ul>
        </div>
    );
};

More by prebuiltui

View all
  • Image Gallery

    Image Gallery

    1.3K
  • Hero Section

    Hero Section

    412
  • Feature Sections

    Feature Sections

    344
  • Testimonial

    Testimonial

    300
  • Cards

    Cards

    231
  • FAQ Sections

    FAQ Sections

    177
  • Form

    Form

    136
  • Login Form

    Login Form

    125

More in Buttons

View all
  • Button

    Button

    14
  • Button

    Button

    34
  • Texture Button

    Texture Button

    92
  • Button Save

    Button Save

    46
  • Button

    Button

    64
  • Button Group

    Button Group

    3
  • Notification Button

    Notification Button

    103
  • Button

    Button