Page Header

Active Menu Demo

Attribute Type Documentation Default Value
id :string

html attribute id

Read more Read less
"wc-page-header-header"
nav_id :string

nav html attribute id

Read more Read less
"wc-page-header-nav"
class :any

html attribute class

Read more Read less
nav_class :any

nav html attribute class

Read more Read less
nav_label :string

Accessible label for the nav element

"Site navigation"
toggle_menu_label :string

Accessible label for the mobile menu toggle button

"Toggle mobile menu"
rest :global

additional HTML attributes for the header element

menu :slot

Appbar menus

Show slot attributes Hide slot attributes
class :any

menu item CSS classes

to :string

navigation path

active :boolean

whether this menu item is the current page

<:menu to="#home" active={true}>Home</:menu>
<:menu to="#about">About</:menu>
<:menu to="#contact">Contact</:menu>
<div class="py-8 text-center">
  <h2 class="text-3xl font-bold">Active Menu Demo</h2>
</div>
user_profile :slot

Appbar right side user_profile.

Show slot attributes Hide slot attributes
class :any

user profile container CSS classes

inner_block :slot

Hero or body content rendered inside the header area