Dropdown Menu
A button that opens a dropdown menu with action items. The menu starts open for preview.
Preview loads on approachPreview loads on approach
Exact source · dropdown-menu-showcase
// Copyright (c) Meta Platforms, Inc. and affiliates.
'use client';
import {DropdownMenu} from '@astryxdesign/core/DropdownMenu';
export default function DropdownMenuShowcase() {
return (
<DropdownMenu
button={{label: 'Actions'}}
items={[
{label: 'Edit', onClick: () => {}},
{label: 'Duplicate', onClick: () => {}},
{label: 'Delete', onClick: () => {}},
]}
/>
);
}