thegridcn

Dropdown

Navigation 8

About

A click-triggered dropdown menu with a sci-fi styled panel, icons, keyboard shortcuts, separators and danger items, closing on outside click or Escape.

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

Code

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

Usage.tsx

import { Dropdown } from "@/components/ui/dropdown";

export default function DropdownDemo() {
  return (
    <div className="flex items-center justify-center p-10">
      <Dropdown
        align="left"
        items={[
          { label: "Profile" },
          { label: "Settings" },
          { separator: true, label: "" },
          { label: "Log out", variant: "danger" },
        ]}
      >
        <button
          type="button"
          className="rounded border border-border bg-card px-3 py-1.5 text-xs font-mono uppercase tracking-widest text-foreground/70"
        >
          Menu
        </button>
      </Dropdown>
    </div>
  );
}

More by thegridcn

View all
  • Energy Meter

    Energy Meter

    91
  • Waveform

    Waveform

    62
  • Data Stream

    Data Stream

    59
  • CTA Banner

    CTA Banner

    28
  • Video Player

    Video Player

    28
  • Terminal

    Terminal

    20
  • 3D Tron Grid Background

    3D Tron Grid Background

    12
  • Pagination

    Pagination

    9

More in Navigation

View all
  • Footer with Big Wordmark

    Footer with Big Wordmark

    77
  • Liquid Glass Expandable Sidebar

    Liquid Glass Expandable Sidebar

    244
  • Sidebar

    Sidebar

    412
  • Button Breadcrumb

    Button Breadcrumb

    35
  • Menu

    Menu

    8
  • Pagination

    Pagination

    114
  • Pagination

    Pagination

    3
  • Oversized 404 Numeral

    Oversized 404 Numeral

    81