ActivationCard

Activation cards are used in groups to communicate a user’s stage in a series of steps toward an overall action.

Props

Component props
Name
Type
Default
message
Required
string
-

Text to render inside the activation card to convey detailed information to the user. The message text has a fixed size.

status
Required
"notStarted" | "pending" | "needsAttention" | "complete"
-

Select the activation card status:

-notStarted: A task that has not be started

-pending: A task that is pending action

-needsAttention: A task that requires the user's attention

-complete: A task that has been completed

statusMessage
Required
string
-

A message to indicate the current status of the activation card.

title
Required
string
-

Heading to render inside the activation card above the message to convey the activation card topic to the user.

dismissButton
{| accessibilityLabel: string, onDismiss: () => void, |}
-

Callback fired when the dismiss button is clicked (pressed and released) with a mouse or keyboard.

Supply a short, descriptive label for screen-readers to provide sufficient context about the dismiss button action. IconButtons do not render text for screen readers to read requiring an accessibility label.

Accessibility: accessibilityLabel populates aria-label.

{| accessibilityLabel: string , href: string, label: string, onClick?: ({ event: SyntheticMouseEvent<HTMLAnchorElement> | SyntheticKeyboardEvent<HTMLAnchorElement | SyntheticMouseEvent<HTMLButtonElement> | SyntheticKeyboardEvent<HTMLButtonElement> }, {| dangerouslyDisableOnNavigation: () => void |}) => void |}
-

Link-role button to render inside the activation card as a call-to-action to the user.

  • label: Text to render inside the button to convey the function and purpose of the button. The button text has a fixed size.
  • accessibilityLabel: Supply a short, descriptive label for screen-readers to replace button texts that do not provide sufficient context about the button component behavior. Texts like Click Here, Follow, or Read More can be confusing when a screen reader reads them out of context. In those cases, we must pass an alternative text to replace the button text.
  • onClick: Callback fired when the button component is clicked (pressed and released) with a mouse or keyboard.

ActivationCard can be paired with OnLinkNavigationProvider. See OnLinkNavigationProvider to learn more about link navigation

Usage guidelines

When to Use
  • Use in groups to describe the user's stage in a sequential path toward an overall action.
When Not to Use
  • As a single element communicating updates to the state or status of the surface. Use Callout instead.

Not started and Pending Cards

Not started

Claim your website

Grow distribution and track Pins linked to your website
Pending

Claim your website

We will notify you via email as soon as your site has been successfully claimed.

Needs attention and Complete Cards

Needs attention

Tag is unhealthy

Oops! Your tag must be healthy to continue.

Nice work

Tag is installed and healthy

OnLinkNavigationProvider
OnLinkNavigationProvider allows external link navigation control across all children components with link behavior.