Components / Onboarding and feedback / Update notice

F7 · Onboarding and feedback

Update notice

Two choices for an available stylesheet update: now, or on the next start.

When to use

  • An update can apply immediately or after a reload.
  • Both choices need to be visible together.

When not to use

  • The update is mandatory and has no second choice.
  • There is no update.

Usage

<section class="card">
  <h3>Stylesheet 1.0.1 is ready</h3>
  <button type="button" class="btn sm">Install now</button>
  <button type="button" class="btn sm ghost">On next start</button>
</section>

Variants

The preview shows the form used in the gallery.

Props

NameTypeDefaultDescription
data-install-nowbutton—Applies inside this preview.
data-install-laterbutton—Stores a flag and applies on the next load of this preview.

Keyboard

KeyAction
EnterActivates the focused choice.
TabMoves between the two buttons.

Accessibility

Motion

Pattern origin

Pattern type: an update notice with two install choices.

Related

ToastDialog