Skip to content
Razor catalogue

On this page

@addTagHelper *, Webority.Ui.Razor

Success and errors

Show the outcome with a clear next step, so a success confirms and a failure guides the person to a retry.

Success: order confirmed
A completed action with a next step.

Order confirmed

Order #12345 will ship tomorrow.
Show code
<app-result status="success" title="Order confirmed" subtitle="Order #12345 will ship tomorrow.">
    <app-button>View order</app-button>
</app-result>
Error: something went wrong
A failed action with guidance or a retry.

Payment declined

Your card was declined. Please check your details and try again.
Show code
<app-result status="error" title="Payment declined" subtitle="Your card was declined. Please check your details and try again.">
    <app-button>Try again</app-button>
</app-result>
404: page not found
Numeric status codes render as large figures.

Page not found

This page has been moved or no longer exists.
Show code
<app-result status="404" title="Page not found" subtitle="This page has been moved or no longer exists.">
    <app-button>Go home</app-button>
</app-result>

Warning and info

Use warning for a risky step that still offers a path forward, and info for a neutral status with no action needed.

Warning: are you sure?
A caution state that still offers a path forward.

High risk detected

This action cannot be undone. Review the details carefully.
Show code
<app-result status="warning" title="High risk detected" subtitle="This action cannot be undone. Review the details carefully.">
    <app-button tone="Danger">I understand, proceed</app-button>
    <app-button variant="Soft">Cancel</app-button>
</app-result>
Info: just so you know
A neutral informational state.

Verification in progress

We're checking your details. This usually takes a few minutes.
Show code
<app-result status="info" title="Verification in progress" subtitle="We're checking your details. This usually takes a few minutes." />

Custom icons

Replace the status icon only when the default would mislead; the status still sets the tone.

Custom icon
Replace the default with your own glyph.

Milestone reached!

You've completed your first 10 tasks.
Show code
<app-result status="success" icon="sparkles" title="Milestone reached!" subtitle="You've completed your first 10 tasks." />

Extra content

Add a short note below the actions when the person needs one more fact or the next step after the button.

With extra copy
A secondary explanation or next step.

Email verified

Your email address is now confirmed.

A confirmation link has been sent to your inbox for future sign-ins.

Show code
<app-result status="success" title="Email verified" subtitle="Your email address is now confirmed.">
    <app-button>Continue to dashboard</app-button>
    <app-result-extra><p>A confirmation link has been sent to your inbox for future sign-ins.</p></app-result-extra>
</app-result>

Every option

Every value of every prop, one cell each.

status: all seven values

status="success"

Success

Supporting message goes here.
status="error"

Error

Supporting message goes here.
status="warning"

Warning

Supporting message goes here.
status="info" (default)

Info

Supporting message goes here.
status="403"

Something went wrong

Supporting message goes here.
status="404"

Something went wrong

Supporting message goes here.
status="500"

Something went wrong

Supporting message goes here.

title and subtitle

(no props): default icon only, no title block
title only

Done

title + subtitle

Order confirmed

Order #12345 will ship tomorrow.
title as a node: React only, Razor's title is a string

Success!

subtitle as a node: React only, Razor's subtitle is a string

Order confirmed

Order #12345 will ship tomorrow.
long title and subtitle (overflow / wrap check)

This is a deliberately long title to check how the heading wraps inside a narrow result panel

And an equally long supporting message, to confirm the subtitle wraps cleanly under the heading without breaking the layout of the panel.

heading level: 1, 2 and 3

heading-level="1"

Heading level 1

Supporting message goes here.
heading-level="2" (default)

Heading level 2

Supporting message goes here.
heading-level="3"

Heading level 3

Supporting message goes here.

icon override

status="404" (no override: code figure, no icon)

Page not found

status="404" icon="zap" (override wins over the code figure)

Off exploring

status="success" icon="sparkles" (override replaces the default glyph)

Milestone reached!

status="success" icon="send" (the send glyph, in place of rocket)

Message sent

status="success" icon="star" (the star glyph, in place of party-popper)

Goal reached

icon as a node: React only, Razor's icon is a library icon name

Custom icon node

actions and extra content

title + subtitle + actions (inner content)

Order confirmed

Order #12345 will ship tomorrow.
title + subtitle + actions + <app-result-extra> (full composition)

Order confirmed

Order #12345 will ship tomorrow.

A confirmation email has been sent.

className

class="checkout-result", caller class appended

Done

Guidance

What to do, and what to avoid.

Use it when

  • A self-contained outcome screen after a major action completes (checkout, signup, verification).
  • An error state (403/404/500) that needs a prominent, scannable presentation.
  • A confirmation or warning that warrants its own full-screen or modal moment.

Reach for something else when

  • A transient message that dismisses on its own. → AppToast
  • A section-scoped "nothing here yet" inside a card or modal. → AppEmptyState
  • An inline alert about a validation error or status change. → AppAlert
  • A persistent announcement bar across the whole page. → AppBanner

Reference

Try every prop, read the full list, and check keyboard and screen reader behaviour.

success error warning info 403 404 500
(none) star cake gift stars
1 2 3

Order confirmed

Order #12345 will ship tomorrow.
React, generated from the controls
<AppResult
  title="Order confirmed"
  subtitle="Order #12345 will ship tomorrow." />
Razor, the same props
<app-result title="Order confirmed" subtitle="Order #12345 will ship tomorrow." />

8 props. The 4 most used come first.

Used on most screens 4 props

PropTypeDefaultDescription
statusdefault info success | error | warning | info | 403 | 404 | 500 info The outcome. It picks the default icon and tone; 403, 404 and 500 show the code as a large figure instead of an icon.
titledefault - string - The heading: what happened.
subtitledefault - string - Supporting message below the title.
icondefault - string - Overrides the status default icon with a library icon name.

Less common 4 props

PropTypeDefaultDescription
heading-leveldefault 2 1 | 2 | 3 2 The title's heading level: 1 when the result is the whole page.
(content)default - markup - Inner content renders below the subtitle as the actions slot, usually one or two app-buttons.
app-result-extradefault - markup - A nested tag whose content renders below the actions as the extra slot.
classdefault - string - Extra classes on the result container, appended to the component's own classes.

Screen reader

2 notes
  • The title is a heading: h2 by default, and headingLevel sets 1, 2 or 3. Use 1 when the result is the whole page.
  • The large figure of a 403, 404 or 500 status is hidden from assistive technology (aria-hidden), so the title carries the meaning.