About
Action menu with a trigger button and anchored, bottom-sheet, or adaptive presentation. Astryx by Meta. Source: https://astryx.atmeta.com/components/DropdownMenu
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Astryx Dropdown Menu to your project and fits it to your theme.
Code
How Astryx Dropdown Menu is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
'use client';
/* Copyright (c) 2026 Meta Platforms, Inc. See MIT notice in astryx-dropdown-menu.tsx. */
import '@/components/ui/astryx-dropdown-menu-utils/astryx-preview.css';
import {DropdownMenu} from '@/components/ui/astryx-dropdown-menu';
function OfficialSample() {
return (
<DropdownMenu
button={{label: 'Actions'}}
items={[
{label: 'Edit', onClick: () => {}},
{label: 'Duplicate', onClick: () => {}},
{label: 'Delete', onClick: () => {}},
]}
/>
);
}
export default function Demo() {
return (
<div className="astryx-demo" data-astryx-theme="neutral" data-theme="light">
<div className="astryx-demo-content" data-centered style={{maxWidth: 320}}>
<OfficialSample />
</div>
</div>
);
}







