About
Dropdown menu opened via button. Supports typeahead and keyboard navigation.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Menu to your project and fits it to your theme.
Code
How Menu is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { MenuContainer, MenuButton, Menu, MenuItem } from "@/components/ui/menu";
export default function DefaultDemo() {
return (
<MenuContainer>
<MenuButton>Actions</MenuButton>
<Menu width={200}>
<MenuItem onClick={() => undefined}>One</MenuItem>
<MenuItem onClick={() => undefined}>Two</MenuItem>
<MenuItem onClick={() => undefined}>Three</MenuItem>
<MenuItem onClick={() => undefined} type="error">
Delete
</MenuItem>
</Menu>
</MenuContainer>
);
}
















