Command: Right to left
Icons, shortcuts, the page chip and the page slide all follow the reading direction.
This adds the example as components/examples/command/rtl.tsx, together with the Command component and the HextaUI theme tokens it needs.
pnpm dlx shadcn@latest add https://hextaui.com/r/command-rtl.jsonTo add only the component, follow the Command installation.
Props in this example
The Command props this example sets, from the API reference.
| Prop | Type | Default |
|---|---|---|
placeholder | string | – |
| Prop | Type | Default |
|---|---|---|
heading | ReactNode | – |
Every prop is in the Command API reference.
See them all, with keyboard support and accessibility notes, on the Command page.
- ButtonButtons in every variant and size, with a built-in loading, success and error flow that skips the spinner for fast requests.
- HotkeyParse, label, announce and match keyboard shortcuts, with ⌘ on Apple platforms and Ctrl everywhere else.
- MotionThe easing curves, durations and reduced-motion check every component animates with, plus hooks for size morphs and sliding highlights.
- SpinnerA loading indicator with Apple-style ticks or a breathing ring that can wait before showing and stay long enough not to flicker.
- Alert dialogA confirmation dialog for destructive or important actions that waits for async work, and becomes a bottom sheet on phones.
- Context menuA menu of actions on right click or long press, with submenus, checkbox and radio items, and hold feedback on touch.