Skip to content
Components / Patterns

Section header

The name of a section inside a page.

@fabrials/ui
Loading state

Recent syncs

The last three observations.

Installation

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

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

API reference

Prop / exportTypeDescription
titleReactNodeSection heading.
descriptionReactNodeOptional supporting line.
actionsReactNodeActions for this section only.
asideReactNodeA tag beside the title (a count, a status), outside the heading so its name stays the title. It wraps under the title when the header is narrow.
headingLevel1 | 2 | 3 | 4The heading element (h2 by default). The look is the section title's at every level.
headingRef / headingPropsRef / { tabIndex, id, data-* }For code that moves focus to the heading; tabIndex -1 makes it focusable and it shows a ring.

Behavior

Use it before inventing another heading style.

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.