Quick Action
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
Add the component
npx ritla add quick-actionAlso works with shadcn:
npx shadcn@latest add @ritla/quick-actionOr 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
import { QuickAction } from "@/components/ui/quick-action";<QuickAction icon={PaperPlaneTiltIcon} href="/send" emphasis="primary">Send</QuickAction>API reference
QuickAction
| Prop | Type | Default | Description |
|---|---|---|---|
icon | IconComponent | None | Figma's Icon. |
children | ReactNode | None | The label. |
variant | "tile" | "circle" | "tile" | Figma's Style. |
emphasis | "default" | "primary" | "default" | Figma's Emphasis. |
href | string | None | A 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-12Medium.