Skip to content

Result

Beta
Get Ritla UI

The outcome screen after a payment, transfer or order: success, pending, warning or failed.

Preview

Mirrored is the same English content laid out right to left: it separates a mirroring bug from a translation one.

PreviewCode
EnglishMirroredArabic
LTR →

Installation

  1. Add the component

    npx ritla add result

    Also works with shadcn: npx shadcn@latest add @ritla/result

  2. Dependencies it brings

    @phosphor-icons/react

  3. Or copy by hand

    Installing by hand copies the component's source into your project. The source comes with a Ritla UI license, so the CLI is the short way to the same files.

Usage

result.tsx
import { Result } from "@/components/ui/result";<Result status="success" title="Transfer sent" actions={<Button size="lg">Done</Button>} />

API reference

Result

PropTypeDefaultDescription
status"success" | "pending" | "warning" | "failed"NoneFigma's Status.
title / descriptionReactNodeNoneFigma's Title and Description.
illustrationReactNodeNoneFigma's Visual: an illustration instead of the status icon.
amountReactNodeNoneFigma's Show amount.
detailsReactNodeNoneFigma's Details: a Description list.
actionsReactNodeNoneThe primary and secondary buttons, full width.

Accessibility

ARIA

  • The title is the section's heading; move focus to it when the screen appears (tabIndex=-1).
  • The status icon is decorative; the title carries the meaning.

Arabic and RTL notes

Mirrors

  • The details follow the page direction.

Does not mirror

  • The check and the clock don't mirror.
Numerals
Amounts use Latin digits.
Arabic typography
Title heading-28 Medium, description body-16.