Community project. This is not an official government website.

Run by volunteers. Lampung Design System is built by an open source community. No government agency runs or endorses it.

Official services use go.id. Government websites in Indonesia end in .go.id. Never enter your national ID number on a site you are unsure of.

Masthead

Masthead New

The thin strip above everything on a public-service site that tells people whether the site is official, and how to tell. Sites built with this system that are not run by a government use the unofficial variant.

Usage

Use it when

  • Every page of a public-service site or app, as the first element in <body>, before the skip link target and the header.
  • A community, campaign or demo site that could be mistaken for a government service: say plainly that it is not.

Use something else when

  • A message about this page or this account (maintenance, a deadline): use Banner.
  • A status inside the content: use Alert.
  • The site navigation itself: use Top nav.

Where it goes. Full width at the very top, above the header, on every page. It does not stick when the page scrolls. On phones the toggle wraps under the sentence.

Examples

Unofficial siteWhat every LDS demo and community site shows. The panel explains who runs it and where official services live.
Community project. This is not an official government website.

Run by volunteers. Built and maintained by an open source community, not by any agency.

Official services use go.id. Government sites in Indonesia end in .go.id. Never enter your national ID number on a site you are unsure of.

<div class="masthead" role="region" aria-label="Site status">
  <div class="masthead__bar">
    <span class="masthead__mark" aria-hidden="true"><span class="ic">info</span></span>
    <span class="masthead__text">Community project. This is not an official government website.</span>
    <button class="masthead__toggle" data-lds-masthead aria-expanded="false" aria-controls="mh-1">How to tell<span class="ic" aria-hidden="true">expand_more</span></button>
  </div>
  <div class="collapse is-closed" id="mh-1" inert><div><div class="masthead__body">
    <p class="masthead__item"><span class="ic" aria-hidden="true">groups</span><span><b>Run by volunteers.</b> Built and maintained by an open source community, not by any agency.</span></p>
    <p class="masthead__item"><span class="ic" aria-hidden="true">verified_user</span><span><b>Official services use go.id.</b> Government sites in Indonesia end in .go.id. Never enter your national ID number on a site you are unsure of.</span></p>
  </div></div></div>
</div>
Official siteOnly for a site an agency runs itself. The wording names the domain people can check.
An official website of the City of Example.

Official sites use go.id. Check that the address ends in .go.id before you sign in.

Secure sites use https. A lock in the address bar means the connection is encrypted.

<div class="masthead masthead--official" role="region" aria-label="Site status">
  <div class="masthead__bar">
    <span class="masthead__mark" aria-hidden="true"><span class="ic">verified_user</span></span>
    <span class="masthead__text">An official website of the City of Example.</span>
    <button class="masthead__toggle" data-lds-masthead aria-expanded="false" aria-controls="mh-2">How to tell<span class="ic" aria-hidden="true">expand_more</span></button>
  </div>
  <div class="collapse is-closed" id="mh-2" inert><div><div class="masthead__body">
    <p class="masthead__item"><span class="ic" aria-hidden="true">language</span><span><b>Official sites use go.id.</b> Check that the address ends in .go.id before you sign in.</span></p>
    <p class="masthead__item"><span class="ic" aria-hidden="true">lock</span><span><b>Secure sites use https.</b> A lock in the address bar means the connection is encrypted.</span></p>
  </div></div></div>
</div>

Anatomy

PartWhat it is
.mastheadRequired. A <div role="region"> with an aria-label such as "Site status". Add masthead--official only for a site an agency actually runs.
.masthead__barRequired. Mark, sentence and toggle in one row.
.masthead__markA small icon chip: gold for unofficial, green for official.
.masthead__toggleA <button> with data-lds-masthead, aria-expanded and aria-controls pointing at the panel.
.collapse > div > .masthead__bodyThe explanation: who runs the site and how to recognise official services.

Variants and sizes

Class or attributeWhen
mastheadUnofficial (default): gold mark, for community and demo sites.
masthead--officialGreen mark, only for sites an agency runs.
--masthead-maxSet to the page container width (for example 1200px) to align the bar with the header.

States

StateHow
closedDefault. The panel is collapsed and inert.
openaria-expanded="true"; the chevron turns and the panel expands.

Motion and microinteractions

  • The panel expands with .collapse on --spring-smooth (560 ms) and fades in on --ease-standard; closing reverses from wherever it is.
  • The chevron turns 180 degrees on --spring-snappy. Reduced motion: no turn, the panel still opens.

Accessibility

  • A region landmark with a short aria-label, so screen reader users can find it and skip it.
  • The toggle is a real <button> with aria-expanded and aria-controls; its hit area extends to 44 px tall around the 28 px chip.
  • Text is --text-subtle on --bg-fill (above 5:1 in both themes).

Do and don't

Do

  • Put it on every page, first in the body.
  • Say plainly who runs the site.
  • Point to how people can recognise official services (.go.id).

Don't

  • Use the official variant on a site no agency runs.
  • Add a coat of arms or agency logo to it.
  • Make it sticky or dismissible: it is a fact about the site, not a message.

Behavior and code

Plain HTML. init() binds [data-lds-masthead]: clicking toggles aria-expanded, the is-closed class and inert on the panel named by aria-controls.