About
A list of actions in a dropdown, enhanced with keyboard navigation. Built on top of Base UI Menu component with shadcn styling.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Base Menu to your project and fits it to your theme.
Code
How Base Menu is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { Button } from '@/components/ui/base-button';
import {
Menu,
MenuCheckboxItem,
MenuContent,
MenuGroup,
MenuGroupLabel,
MenuSeparator,
MenuTrigger,
} from '@/components/ui/base-menu';
export default function MenuDemo() {
return (
<Menu>
<MenuTrigger render={<Button variant="outline">Show Menu</Button>} />
<MenuContent sideOffset={4} className="w-50">
{/* Notifications */}
<MenuGroup>
<MenuGroupLabel>Notifications</MenuGroupLabel>
<MenuSeparator />
<MenuCheckboxItem defaultChecked>Push Notifications</MenuCheckboxItem>
<MenuCheckboxItem defaultChecked>Email Notifications</MenuCheckboxItem>
<MenuCheckboxItem>Security Alerts</MenuCheckboxItem>
</MenuGroup>
</MenuContent>
</Menu>
);
}








