Latitude ComponentsLibrary 0.1.0

Banner

A full-width message at the top of the app, for account or system news only. It sits in the page flow and pushes all content down. Rules: UX Elements & Rules → Banner (R-F2).

Add it to a page

Load the pinned file once in your Latitude Site or web page, then use the tag.

<script type="module" src="https://web-components.sites.latd.com/components/lat-banner/0.1.0/lat-banner.js"></script>

The file is an ES module. It loads Lit, the design-system tokens and the Roobert stylesheet from this catalog once per page, however many components you use.

Version0.1.0
File/components/lat-banner/0.1.0/lat-banner.js (0.8 KB gzipped)
SHA-256f84bd36ea393e8ef792e0078e104398da3d2e4abe1285ea05dc89cb8543a6fd1

An action goes in the action slot, usually a <lat-button>, so load that file too.

Permutations

Banners span the app, so each example shows one ground at full width. Below 640px wide, the title moves above the message.

Types, dark

Dark
The past three charge attempts were unsuccessful. Update your payment method to regain edit access. Your viewer data export now includes panel source. Update any saved imports. Upgrade your team to get unlimited projects and video uploads.
<div style="display: grid; gap: 16px; width: 100%">
  <lat-banner heading="Edit access suspended">
    The past three charge attempts were unsuccessful. Update your payment method to regain edit access.
  </lat-banner>
  <lat-banner type="info" heading="New data columns">
    Your viewer data export now includes panel source. Update any saved imports.
  </lat-banner>
  <lat-banner type="upsell" heading="Trial ends in 14 days">
    Upgrade your team to get unlimited projects and video uploads.
  </lat-banner>
</div>

Types, light

Light
The past three charge attempts were unsuccessful. Update your payment method to regain edit access. Your viewer data export now includes panel source. Update any saved imports. Upgrade your team to get unlimited projects and video uploads.
<div style="display: grid; gap: 16px; width: 100%">
  <lat-banner heading="Edit access suspended">
    The past three charge attempts were unsuccessful. Update your payment method to regain edit access.
  </lat-banner>
  <lat-banner type="info" heading="New data columns">
    Your viewer data export now includes panel source. Update any saved imports.
  </lat-banner>
  <lat-banner type="upsell" heading="Trial ends in 14 days">
    Upgrade your team to get unlimited projects and video uploads.
  </lat-banner>
</div>

With an action, dark

Dark
The past three charge attempts were unsuccessful. Update your payment method to regain edit access. Update payment
<div style="display: grid; gap: 16px; width: 100%">
  <lat-banner heading="Edit access suspended">
    The past three charge attempts were unsuccessful. Update your payment method to regain edit access.
    <lat-button slot="action" size="sm">Update payment</lat-button>
  </lat-banner>
</div>

With an action, light

Light
The past three charge attempts were unsuccessful. Update your payment method to regain edit access. Update payment
<div style="display: grid; gap: 16px; width: 100%">
  <lat-banner heading="Edit access suspended">
    The past three charge attempts were unsuccessful. Update your payment method to regain edit access.
    <lat-button slot="action" size="sm">Update payment</lat-button>
  </lat-banner>
</div>

Small, dark

Dark
Lumiere is trying to reconnect… Lumiere will be unavailable on Sunday from 02:00 to 03:00 UTC.
<div style="display: grid; gap: 16px; width: 100%">
  <lat-banner size="sm" heading="You’re offline.">Lumiere is trying to reconnect…</lat-banner>
  <lat-banner size="sm" type="info" heading="Scheduled maintenance.">
    Lumiere will be unavailable on Sunday from 02:00 to 03:00 UTC.
  </lat-banner>
</div>

Small, light

Light
Lumiere is trying to reconnect… Lumiere will be unavailable on Sunday from 02:00 to 03:00 UTC.
<div style="display: grid; gap: 16px; width: 100%">
  <lat-banner size="sm" heading="You’re offline.">Lumiere is trying to reconnect…</lat-banner>
  <lat-banner size="sm" type="info" heading="Scheduled maintenance.">
    Lumiere will be unavailable on Sunday from 02:00 to 03:00 UTC.
  </lat-banner>
</div>

Attributes

AttributeValuesNotes
typewarning (default), info, upsellWarning: account-related and consequential, announced as an alert. Info: non-blocking, worth a nudge. Upsell: optional actions that lead to a purchase.
sizemd (default, 64px), smSmall is one line.
headingtextThe title, 180px wide at the default size.

Slots

SlotNotes
(default)The message.
actionAn optional action after the message.