Components / Onboarding and feedback / Companion card

F2 · Onboarding and feedback

Companion card

A speech card with a dismiss control. The artwork is an empty labelled slot.

When to use

  • A product reserves a place for a companion.
  • The artwork is not ready.

When not to use

  • There is no companion in the product.
  • The message is a field error. Put the error on the field.

Usage

<section class="card">
  <div class="top"><h3>Companion</h3><button type="button" class="btn sm ghost">Dismiss</button></div>
  <div class="slot">Bud companion, pending yravgBud</div>
</section>

Variants

The preview shows the form used in the gallery.

Props

NameTypeDefaultDescription
slot labeltextBud companion, pending yravgBudExact label while yravgBud is pending.
data-dismissbutton—Hides the card in this preview.

Keyboard

KeyAction
EnterOn Dismiss, hides the card.
TabMoves from the heading row to Dismiss.

Accessibility

Motion

Pattern origin

Pattern type: a dismissible speech card. The artwork slot is empty on purpose.

Related

Companion toggleStart here