Right-to-left layouts for Arabic, Hebrew and other RTL languages.

init --rtl installs right-to-left versions of the components, as shadcn init --rtl does upstream: physical classes like ml-2 become logical ones like ms-2, directional icons flip, and popups open on the logical side.

pnpm dlx shadcnui-hono-jsx@latest init --preset b0 --rtl

Then set the direction on your document:

<html lang="ar" dir="rtl">

The components follow the CSS direction and need no provider. The client scripts read the direction for arrow keys, so keyboard navigation follows the layout too.

To switch an existing project, run apply with --rtl or --no-rtl:

pnpm dlx shadcnui-hono-jsx@latest apply --rtl

The RTL examples on the component pages render with these components.