Atelier UI

搜索组件…

搜索组件…

Mobile Bottom Nav

移动端底部导航:图标 + 文字、角标,可选居中悬浮操作按钮。

在沙盒中编辑

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

属性

MobileBottomNavProps

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

属性类型默认值说明
items* 必填BottomNavItem[]——
valuestring——
defaultValuestring——
onValueChange(id: string) => void——
fabBottomNavFab—Raised action button inserted in the middle

安装

$ npx shadcn@latest add https://chromotion.dev/r/mobile-bottom-nav.json

同类组件