Font Awesome Build Awesome
Try SSR Server-side rendering (SSR) generates component HTML on the server before the page loads, improving SEO and initial load time. Use the switch to see Web Awesome components render with and without SSR.
Search this website ⌘KCtrl+K Light Dark System Docs Select Color Scheme Default Awesome Shoelace Yoummday Light Yoummday Dark Active Brutalist Glossy Matter Mellow Playful Premium Tailspin Docs Select Theme View Project on GitHub Star Project on GitHub
Start Components Docs Help
Web Awesome Font Awesome Build Awesome
Search this site… /
Try SSR Server-side rendering (SSR) generates component HTML on the server before the page loads, improving SEO and initial load time. Use the switch to see Web Awesome components render with and without SSR.
Light Dark System Docs Select Color Scheme Default Awesome Shoelace Yoummday Light Yoummday Dark Active Brutalist Glossy Matter Mellow Playful Premium Tailspin Docs Select Theme

Getting Started

  • Installation
  • Usage
  • Forms
  • Localization
  • Frameworks
  • Using with AI
  • Figma Design Kit ProThis requires access to Web Awesome Pro
  • Server Rendering

Resources

  • Accessibility
  • Browser Support
  • Contributing
  • Patterns ProPatterns require access to Web Awesome Pro
  • Migrating from Shoelace
  • Visual Tests
  • Component Showcase
  • Changelog
  • Help & Support

Theming & Utilities

  • Overview
  • Built-in Themes
  • Color Palettes
  • Design Tokens
  • Customizing & Theming
  • CSS Utilities

Actions

  • Button
  • Button Group
  • Button Row
  • Copy Button
  • Dropdown
    • Dropdown Item

Forms

  • Checkbox
  • Checkbox Group
  • Color Picker
  • File Upload
  • Input
  • Known Date
  • Number Input
  • OTP Input
  • Radio Group
    • Radio
  • Rating
  • Select
    • Option
  • Slider
  • Switch
  • Textarea
  • Time Input

Layout

  • Accordion
    • Accordion Item
  • Card
  • Content Header
  • Details
  • Dialog
  • Divider
  • Drawer
  • Page
  • Page Header
  • Scroller
  • Split Panel

Navigation

  • Breadcrumb
    • Breadcrumb Item
  • Navigation Entry
  • Pagination
  • Tab Group
    • Tab
    • Tab Panel
  • Tree
    • Tree Item

Feedback

  • Badge
  • Callout
  • Empty State
  • Progress
  • Progress Bar
  • Progress Ring
  • Progress Ring Group
  • Skeleton
  • Spinner
  • Tag
  • Toast
    • Toast Item
  • Tooltip

Media

  • Animated Image
  • Avatar
  • Carousel
    • Carousel Item
  • Comparison
  • Icon
  • Markdown
  • QR Code
  • Zoomable Frame

Data Viz

  • Advanced Usage

Helpers

  • Animation
  • Format Bytes
  • Format Date
  • Format Number
  • Include
  • Intersection Observer
  • Mutation Observer
  • Popover
  • Popup
  • Random Content
  • Relative Time
  • Resize Observer

Page Header

  • Examples
  • Custom branding
  • Header controls
  • Logo label and sizing
  • API
  • Importing
  • Slots
  • Attributes & Properties
  • CSS Custom Properties
  • CSS Parts
  • Dependencies
On This Page...
  • Examples
  • Custom branding
  • Header controls
  • Logo label and sizing
  • API
  • Importing
  • Slots
  • Attributes & Properties
  • CSS Custom Properties
  • CSS Parts
  • Dependencies

Page Header

<wa-page-header>
Experimental added Layout Since 3.11

Frames application-level navigation, controls, and actions at the top of a page.

Use wa-page-header for application-level chrome. For a title and actions inside the page's main content, use wa-content-header instead.

Dashboard Reports
<wa-page-header>
  <nav class="wa-cluster wa-gap-s" aria-label="Primary">
    <a href="#dashboard">Dashboard</a>
    <a href="#reports">Reports</a>
  </nav>
  <wa-button slot="end" appearance="plain">
    <wa-icon library="fa7" name="circle-user" label="Profile"></wa-icon>
  </wa-button>
</wa-page-header>

Examples

Link to This Section

Custom branding

Link to This Section

Content in the start slot replaces the fallback Yoummday logo.

Acme Workspace Sign in
<wa-page-header>
  <a slot="start" href="#home" class="wa-cluster wa-gap-xs">
    <wa-icon library="fa7" name="compass"></wa-icon>
    <strong>Acme</strong>
  </a>
  <span>Workspace</span>
  <wa-button slot="end">Sign in</wa-button>
</wa-page-header>

Header controls

Link to This Section

The default slot stays visually centered while the logical start and end regions size independently.

Support Console
<wa-page-header>
  <span slot="start">Support Console</span>
  <div class="wa-cluster wa-gap-xs" aria-label="Call controls">
    <wa-button appearance="plain"><wa-icon library="fa7" name="play" label="Start"></wa-icon></wa-button>
    <wa-button appearance="plain"><wa-icon library="fa7" name="pause" label="Pause"></wa-icon></wa-button>
    <wa-button appearance="plain"><wa-icon library="fa7" name="phone" label="Call"></wa-icon></wa-button>
  </div>
  <wa-button slot="end" appearance="plain"><wa-icon library="fa7" name="bars" label="Menu"></wa-icon></wa-button>
</wa-page-header>

Logo label and sizing

Link to This Section

Use logo-label to adapt the fallback logo's accessible name. The logo and layout expose CSS custom properties for local sizing.

Operations
<wa-page-header logo-label="Yoummday home" style="--logo-size: 2rem; --padding-inline: var(--wa-space-m);">
  <span>Operations</span>
</wa-page-header>

API

Link to This Section

Importing

Link to This Section

If you're using the autoloader or a hosted project, components load on demand — no manual import needed. To cherry-pick a component manually, use one of the following snippets.

CDN npm Self-Hosted React

Import this component directly from the CDN:

import 'https://cdn.yoummday.com/packages/@yoummday/webawesome/0.5.1/dist/components/page-header/page-header.js';

After installing Web Awesome via npm, import this component:

import '@yoummday/webawesome/dist/components/page-header/page-header.js';

If you're self-hosting Web Awesome, import this component from your server:

import './webawesome/dist/components/page-header/page-header.js';

To import this component for React 18 or below, use the following code:

import WaPageHeader from '@yoummday/webawesome/dist/react/page-header/index.js';

Slots

Link to This Section

Learn more about using slots.

Name Description
(default) Content centered in the header.
end Actions aligned to the inline end.
start Branding or navigation aligned to the inline start. Defaults to the Yoummday logo.

Attributes & Properties

Link to This Section

Learn more about attributes and properties.

Name Description Reflects
logoLabel
logo-label
Accessible label for the fallback Yoummday logo. Set to an empty string when the logo is decorative.
Type string
Default 'Yoummday'

CSS Custom Properties

Link to This Section

Learn more about CSS custom properties.

Name Description
--gap
The minimum gap between header regions.
Default var(--wa-space-m)
--logo-size
The default logo's block size.
Default 1.75rem
--padding-block
The header's block padding.
Default var(--wa-space-m)
--padding-inline
The header's inline padding.
Default 0

CSS Parts

Link to This Section

Learn more about CSS parts.

Name Description CSS selector
center The centered default slot. ::part(center)
end The inline-end slot. ::part(end)
logo The default Yoummday logo. ::part(logo)
page-header The component's header element. ::part(page-header)
start The inline-start slot. ::part(start)
base An alias for the component's header element. ::part(base)

Dependencies

Link to This Section

This component automatically imports the following elements. Sub-dependencies, if any exist, will also be included in this list.

  • <wa-icon>
Need a hand? Report a bug Ask for help
Go Make Something Awesome
Version 0.5.1 © Fonticons, Inc.
  • Terms
  • Privacy
  • Refunds
  • Core License
  • Pro License

Quick Links

  • Components
  • CSS Utilities
  • Theming
  • Using with AI
  • Changelog
  • Help & Support

Recent Searches

    D'oh! No results for “”

    Suggest on GitHub Ask on Discord
    Navigate Select
    Close Esc