Atelier UI

搜索组件…

搜索组件…

Menubar

桌面应用风格菜单栏,支持子菜单、复选/单选项、快捷键和完整键盘操作。

在沙盒中编辑

复制一段给 AI 编程工具的提示词,包含源码、依赖和用法

属性

MenubarProps

同时支持以下类型的全部属性: Omit<React.ComponentProps<"div">, "children">

属性类型默认值说明
menus* 必填MenubarMenu[]——
defaultOpenIndexnumber—Render the menu at this index open on mount (without moving focus)

安装

$ npx shadcn@latest add https://chromotion.dev/r/menubar.json

同类组件