Global Header

A top header combining the product name, main views, and shared actions.

Live preview
Interact with the component to see results here.
View code
HTML
<sy-global-header
  title="Syidax"
  information
  notification
></sy-global-header>

Usage guide

#

Collect the app's brand, navigation, and shared actions. Keep individual page titles in the body.

Brand
Put the logo in the logo slot.
Navigation
Place tabs in the tabs slot. To connect tab content, build the structure inside sy-tab-group.
Shared actions
Place account, settings, and similar actions in the actions slot.

Feature examples

#

Choose a feature from 10 topics. Explore property settings, method calls, event results, and slot layouts through live examples and code.

Usage examples · Overview

Try the selected example. Topics with multiple configurations let you switch between detailed examples.

View code
HTML
Loading the example.

Property · App Title

See how settings change appearance and behavior.

View code
HTML
Loading the example.

Property · Information

See how settings change appearance and behavior.

View code
HTML
Loading the example.

Property · Notification

See how settings change appearance and behavior.

View code
HTML
Loading the example.

Property · Sticky

See how settings change appearance and behavior.

View code
HTML
Loading the example.

Methods · Update Overflow Tabs

Use the example's buttons to call methods and inspect their results.

View code
HTML
Loading the example.

Events · Action Click

Interact with the component to see event names and payloads in the live preview below.

View code
HTML
Loading the example.

Events · Changed

Interact with the component to see event names and payloads in the live preview below.

View code
HTML
Loading the example.

Events · Selected

Interact with the component to see event names and payloads in the live preview below.

View code
HTML
Loading the example.

API reference

#

Hover over a name or focus it with the keyboard to see the code. On touch screens, tap the name.

<sy-global-header>

Properties

Attribute / PropertyTypeDefaultDescription
string''Product name shown in the header. The HTML attribute is title.
booleanfalseStick to the top of the nearest scroll container.
booleanfalseShow the search input.
booleanfalseShow the help action button.
booleanfalseShow the notification action button.

Events

EventDetailDescription
CustomEvent<unknown>Emitted when the value or selection state changes.
CustomEvent<unknown>Read the result from the event's detail.
CustomEvent<unknown>Emitted when the user selects an item.

Methods

MethodReturnsDescription
Promise<void>Recalculate the tabs shown in the overflow menu for the current width.

Slots

SlotDescription
Content displayed in the logo area.
Content displayed in the tabs area.
Content displayed in the actions area.