Dropdown (am-dropdown)
am-dropdown 建立在原生 <details> / <summary>,適合 workspace 導覽、篩選入口與相關連結。它不依賴 client script,也不會假設選單項目具有命令執行或資料變更能力。
<Dropdown label="Workspace menu" items={[ { label: "Overview", href: "/overview", current: true }, { label: "Settings", href: "/settings" }, ]}/>align="end" 可讓面板靠觸發器尾端對齊,open 只控制初始展開狀態;連結的導向與目前頁面狀態由 consumer 提供。