Skip to content

Inline Loading

Beta
Get Ritla UI

A small spinner or status icon with a label for a background save or check, inside a row, a card or beside a button.

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 inline-loading

    Also works with shadcn: npx shadcn@latest add @ritla/inline-loading

  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

inline-loading.tsx
import { InlineLoading } from "@/components/ui/inline-loading";<InlineLoading status="loading">Saving changes…</InlineLoading>

API reference

InlineLoading

PropTypeDefaultDescription
status"loading" | "success" | "error""loading"Figma's Status.
childrenReactNodeNoneFigma's Label.
hideLabelbooleanfalseFigma's Show label off: the label stays for screen readers.

Accessibility

ARIA

  • A polite role="status", so each change is announced.
  • For a whole screen use the Spinner or Skeleton.

Arabic and RTL notes

Mirrors

  • The icon starts the line.

Does not mirror

  • The check doesn't mirror.
Numerals
It holds no numbers.
Arabic typography
body-14.