Skip to content
Components / Patterns

Page header

The name of the page, a one-line description and the primary action.

@fabrials/ui
Loading state

Accounts

Provider connections for this workspace.

Installation

  1. Import the control from @fabrials/ui, after setting the app up.

    TypeScript
    import { PageHeader } from "@fabrials/ui";

API reference

Prop / exportTypeDescription
titleReactNodePage heading.
descriptionReactNodeWhat this page is for.
actionsReactNodeThe primary action.
headingLevel1 | 2 | 3 | 4The heading element (h1 by default). The look is the page title's at every level.
headingRef / headingPropsRef / { tabIndex, id, data-* }For code that moves focus to the heading after a route or tool change: give it tabIndex -1. A focused heading shows a ring.

Behavior

One page heading. Put the action next to the task it performs.

Accessibility

Keyboard and contrast
Keep visible labels, keyboard focus and status announcements when customizing. These components inherit your theme; maintain sufficient contrast in both color modes. The preview is keyboard operable.