Skip to main content

PageHeader

The header block at the top of a page or detail view — a title and subtitle, an optional back button (shown when onBack is provided), and an extra action area. Any children render below the header row.

import { PageHeader } from '@jbpark/ui-kit';

<PageHeader
title="Project settings"
subTitle="Manage your project configuration"
onBack={() => history.back()}
extra={<Button type="primary">Save</Button>}
/>;

Project settings

Manage your project configuration

Props

PropTypeDefault
titleReactNode-
subTitleReactNode-
extraReactNode (action area, top-right)-
onBack() => void (renders the back button)-
backIconReactNodearrow
childrenReactNode (content below the header)-
classNames{ back?; title?; subTitle?; extra? }-
classNamestring-

The back button only appears when onBack is set. All other div props are forwarded to the root.