Display
Result <pm-result>
Result: what happened after an action, as a whole block. Payment went through, the import failed, the page is missing, access is denied.
Overview
status picks the icon and colour. Put the next steps (buttons, links) in it. An error is announced at once (role="alert"), the others politely. For a list with nothing in it yet, use <pm-empty-state>.
Attributes
| Attribute | Type | Default | Description |
|---|---|---|---|
status | 'success' | 'error' | 'warning' | 'info' | — | Outcome: sets the icon and the colour (default info). |
heading | string | — | The headline, e.g. "Payment received". |
description | string | — | One or two sentences under the headline. |
code | string | — | A short code above the headline, e.g. "404" or "Error 500". |
icon | string | — | Registered icon name instead of the status icon (see registerIcons). |
heading-levelprop: headingLevel | number | — | Heading level of the headline, 1 to 6 (default 2). Use 1 when the result is the whole page. |
Also accepts the contextual attributes tone, surface, radius, density, motion, elevation. They are inherited from ancestors' data-* attributes.
Slots
| Slot | Description |
|---|---|
(default) | Actions: what the person can do next. |
icon | Your own icon or illustration. |
extra | Details under the actions (an order summary, an error log). |
CSS parts
| Part | Description |
|---|---|
::part(base) | The block. |
::part(icon) | The icon circle. |
::part(actions) | The row of actions (drawn only when there are any). |
::part(extra) | The details under the actions (drawn only when there are any). |
Used in templates
Sign inCreate accountTwo-step verificationForgot passwordChoose a new passwordCheckoutLanding pageArticleContactComing soonServer error (500)Onboarding wizardAppointment bookingFeedback survey