JGuang

PageHeader

PageHeader · Arco Design

Preview
npm install @arco-design/web-react@2.66.18

PageHeader

A header with common actions and design elements built in.

Install

npm install @arco-design/web-react@2.66.18

Import @arco-design/web-react/dist/css/arco.css at the entry and set the locale with ConfigProvider. React 19 projects must also import @arco-design/web-react/es/_util/react-19-adapter first, or imperative APIs such as Message and Modal cannot render.

Examples

  • Basic: Basic page header, suitable for use in scenarios that require a simple description. The default is no background color.
  • Breadcrumb: Basic page header, suitable for use in scenarios that require a simple description. The default is no background color.
  • Background: The default is no background color, if necessary, you can set a different background color through style or class name.
  • Conplex: Complete capabilities provided by components

Examples come from the official Arco Design repository (MIT) at the commit published as npm 2.66.18. Some use online images or upload endpoints; network requests are disabled in previews.

API

PageHeader

PropertyDescriptionTypeDefaultValue
extraCustomize the extra content. The extra element will be rendered to the end of the title lineReactNode-
footerThe footer elementReactNode-
subTitleThe subtitle elementReactNode-
titleThe title elementReactNode-
backIconCustomize back icon, if false The back icon will not be displayedReactNode | boolean-
breadcrumbThe props of Breadcrumb componentBreadcrumbProps-
classNameAdditional css classstring | string[]-
styleAdditional styleCSSProperties-
onBackCallback when click the back icon(e: MouseEvent) => void-