Components / Onboarding and feedback / Locked item

F6 · Onboarding and feedback

Locked item

A destination that stays visible, plus the empty state it opens.

When to use

  • A destination exists but is not available.
  • People should see that it exists.

When not to use

  • The destination should be omitted.
  • The whole page is unavailable. Say so once, not on every item.

Usage

<button type="button" class="c-navitem is-locked" aria-disabled="true">Holds <span class="c-lock">Locked</span></button>
<p class="c-empty">This example view is locked.</p>
<button type="button" class="btn sm">Request access</button>

Variants

The preview shows the form used in the gallery.

Props

NameTypeDefaultDescription
is-lockedclassabsentItem shows the Locked label.
aria-disabledtrueabsentThe item does not become the current page.
data-gatedregionhiddenEmpty state for the locked view.

Keyboard

KeyAction
EnterOn a locked item, shows the empty state.
EnterOn Request access, records the request in the preview.

Accessibility

Motion

Pattern origin

Pattern type: a locked destination and an empty gated page.

Related

Side navSoft gateDialog