Dropdown menu

Section Menu

A dropdown split into sections with visible group headings and separators, so a long list of commands stops reading as one wall.

React + Tailwind, shadcn-compatible: press “Copy for AI” and your Cursor or Claude Code agent installs it with the shadcn CLI.

What you can change

  • the button caption through trigger
  • the side it opens to through align
  • the sections and their items through sections

A link for your AI agent: preview, code and instructions.

Preview

1440pxHost theme
Section Menu — A dropdown split into sections with visible group headings and separators, so a long list of commands stops reading as one wall.

Use it with AI

  1. 1. Copy the link.
  2. 2. Write to your agent in your own words and drop the link into the sentence.
  3. 3. The agent opens the link and installs the component from the registry.
AI
1Pick it here

put this on the home page as the hero:

https://vibeui.club/c/dropdown-002?lang=en&theme=dark

2Paste into the chat
3Get it in your project

Not sure where to paste it? Step-by-step guide

Show the full instructions

What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.

Loading…

How to use

<Dropdown002
  trigger="Actions"
  align="right"
  sections={[{ title: "Export", items: ["PDF", "Markdown"] }]}
/>

A sample call. The agent installs the component itself from the registry via the “Copy for AI” link.

Settings

Button
trigger · default: Actions
Side
align · default: right
Caption
caption · default: Annual report
Accent
accent · default: theme colour
Background
background · default: theme colour

FAQ

How do I add Section Menu with Cursor or Claude Code?
Press “Copy for AI” on this page and paste it into your agent's chat. The instruction contains the shadcn CLI install command, the dependencies and what to keep, so the agent installs this exact component instead of recreating a lookalike.
What does Section Menu depend on?
No npm packages beyond React and Tailwind CSS.
What can I change in Section Menu?
Adapt: the button caption through trigger; the side it opens to through align; the sections and their items through sections. Keep as installed: the local --vibeui-dropdown-002-* palette: the component must look the same in any project; the HTML popover as the opening mechanism — Escape and outside clicks then come from the browser, not from your code; the @supports (anchor-name) wrapper around the anchor rules: without it an older browser misplaces the menu instead of breaking it.
Is Section Menu free?
Yes. The preview is open without an account; with a free account you can copy up to 20 components a month.

For developers

npx shadcn@latest add https://vibeui.club/r/pro/dropdown-002.json

This command needs a signed link: sign in and open “Component source” below — it issues a working link valid for 30 minutes. All install options

Technical notes

One file, zero dependencies, the palette in the --vibeui-dropdown-002-* variables. A client component: an arrow handler walks the focus across the items. Opening, the top layer, Escape and the outside click are held by the HTML popover; the placement beside the button is CSS anchor positioning (anchor-name on the trigger, position-area on the menu) inside @supports, so without anchors the menu simply opens in the middle of the screen. The sections are marked up as role=group with aria-labelledby pointing at the visible heading, with a role=separator between them. The align prop changes the side it opens to with a single position-area rule. The root carries its own surface and border, and their lightness comes from the surrounding color-scheme through light-dark().

Tags

  • menu
  • dropdown
  • sections
  • popover
Component source

The same file your agent installs. Here in case you would rather copy it by hand.

Loading…