C

MobilePageHeader 移动端页面头部

业务组件

移动端页面头部 — 面向 ERP/企业场景的业务组件。

何时使用

需要移动端页面头部功能时使用本组件。

代码示例

基础用法

tsx
import { MobilePageHeader } from "@/components/business/mobile-page-header"

export function Basic() {
return <MobilePageHeader />
}

API / Props

MobilePageHeader

PropTypeDefault说明
classNamestring自定义样式类名
titlestring标题
descriptionstring描述文本
breadcrumbItems{ label: string; href?: string }[]
actionsReact.ReactNode
onBack() => void
onMenu() => void
...restReact.HTMLAttributes透传原生 DOM 属性

注意事项

  • Client Component: 使用 "use client",依赖 React hooks/状态,需在客户端渲染。

📘 完整交互式示例与控件属性请查看 Storybook 文档