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.4K
  • Hero Section

    Hero Section

    446
  • Feature Sections

    Feature Sections

    375
  • Testimonial

    Testimonial

    348
  • Cards

    Cards

    242
  • FAQ Sections

    FAQ Sections

    191
  • Form

    Form

    141
  • Login Form

    Login Form

    138

More in Buttons

View all
  • Button

    Button

    16
  • Texture Button

    Texture Button

    110
  • Button Group

    Button Group

  • Button

    Button

    137
  • Button

    Button

    37
  • Eclipse Button

    Eclipse Button

    44
  • Astryx Chat Send Button

    Astryx Chat Send Button

    3
  • Random Letter Swap CTA Buttons

    Random Letter Swap CTA Buttons

    62