Teva Teva -0.02 (-0.13%) April 28, 2025 12:54 PM EDT Delay 20 Minutes Country -0.02 (-0.13%) April 28, 2025 12:54 PM EDT Delay 20 Minutes

Page Header - Rebrand Example

This example demonstrates the vision-page-header component with a comprehensive set of features including navigation, search, branding, and user tools.

Component Overview

The vision-page-header is a complex header component that provides:

  • Fixed header positioning with reading progress bar
  • Primary and collapsed brand identification
  • Navigation menu integration
  • Search functionality
  • User tools and controls
  • Responsive design with mobile menu support

Header Configuration

The header is configured with the following key properties:

  • show-reading-progress-bar="true" - Displays a progress indicator as user scrolls
  • is-fixed-header="true" - Makes the header stick to the top of the viewport
  • navigation-source - JSON string containing navigation menu data
  • search-endpoint="/api/v1/autocomplete/search" - API endpoint for search autocomplete
  • search-label="Zoeken" - Accessibility label for search input
  • search-placeholder="Zoeken" - Placeholder text for search input

Brand Identity

Two brand slots provide responsive logo display:

  • identification-primary-expanded - Logo for desktop/expanded view
  • identification-primary-collapsed - Logo for mobile/collapsed view

Interactive Elements

The header includes several types of interactive components:

Popover Button

Used for the stock ticker with expandable content on hover/click.

Dropdown Button

Alternative dropdown implementation with section-based content management.

Navigation Tools

Action buttons placed in the navtool-end slot for desktop and menu-end for mobile.

Search Triggers

Icon buttons that activate the search functionality:

  • navtool-search-button - Search icon for desktop
  • menu-search-button - Search icon for mobile menu

Available Slots

Slot NamePurposeExample Usage
identification-primary-expandedMain logo (desktop)Brand logo with link
identification-primary-collapsedCollapsed logo (mobile)Simplified brand mark
navtool-endEnd of navigation and tools sectionUser account, settings
menu-endEnd of menu section (navtools)User actions in mobile
navtool-search-buttonSearch trigger (desktop)Search icon button
menu-search-buttonSearch trigger (mobile)Search icon for mobile

Theme Integration

This example uses the Teva theme.

Accessibility Features

  • All interactive elements include proper ARIA labels
  • Icons are marked with aria-hidden="true" and focusable="false"
  • Language options include hreflang and descriptive aria-label attributes
  • Semantic HTML structure for screen readers

Related Components

  • vision-ident - Brand identity component
  • vision-button - Standard button component
  • vision-trigger - Trigger/action button
  • vision-popover-button & vision-popover-content - Popover functionality
  • vision-dropdown-button & vision-dropdown-content - Dropdown menus