Skip to content

Quick Action

Beta
Get Ritla UI

The main money actions under the balance, as tiles or circles; Primary is the one main action.

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 quick-action

    Also works with shadcn: npx shadcn@latest add @ritla/quick-action

  2. 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

quick-action.tsx
import { QuickAction } from "@/components/ui/quick-action";<QuickAction icon={PaperPlaneTiltIcon} href="/send" emphasis="primary">Send</QuickAction>

API reference

QuickAction

PropTypeDefaultDescription
iconIconComponentNoneFigma's Icon.
childrenReactNodeNoneThe label.
variant"tile" | "circle""tile"Figma's Style.
emphasis"default" | "primary""default"Figma's Emphasis.
hrefstringNoneA link; without it, a button.

Accessibility

ARIA

  • The label is the name; the icon is decorative.

Arabic and RTL notes

Mirrors

  • In a Tile, the icon sits at the top right.

Does not mirror

  • Directional icons (Send) flip on their own; the rest do not.
Numerals
No figures.
Arabic typography
label-12 Medium.