Skip to content

Account

One circle for your header: a link to your account page, and the language, display currency and theme of the components.

Box
data-pms-booking="menu"
Goes on
Your header
Drawn
On your page, in a shadow root
Own HTML instead
Yes — recommended

The ready component

One line to paste. It wears the property’s branding from the PMS until your site’s stylesheet says otherwise.

  1. Place the script once, on every page that shows a component — see Install the script.
  2. Paste the component where it should appear.

Live preview on a sample hotel — invented rooms and prices, placeholder pictures. Open in a new tab

The live preview runs only when these docs are opened on a developer's own machine.

<div data-pms-booking="menu"></div>

Settings

What the component shows and where it leads — attributes on its box.

AttributeValuesWhat it does
data-hideany of "language currency theme"Rows left out of the menu, for a site that has its own switch for them.
data-system"off"off: the theme row is a light / dark switch, without the "as the device" choice.

The currency row shows only when the property offers more than one currency. Picking a language or a currency reloads the page.

Account icon

The same circle on its own, without the menu: a link to your account page.

Live preview on a sample hotel — invented rooms and prices, placeholder pictures. Open in a new tab

The live preview runs only when these docs are opened on a developer's own machine.

<div data-pms-booking="account"></div>

How it looks — colours, corners, fonts — is not an attribute. Your site’s stylesheet sets it with CSS variables: see Styling.

With your own HTML

Your own header keeps its own account link and its own switches. A signed-in guest’s name cannot be shown on your own page yet: who is signed in stays inside the guest area, so the account link is a plain link to your account page.

The account link is a plain link to the page that carries the guest area. The list of currencies comes from the property.

<nav class="site-tools">
<a href="/account">My bookings</a>
<select id="site-currency" aria-label="Currency"></select>
</nav>

Every attribute, method and variable: Attributes · JavaScript · Styling.