Updates

Right-to-left support for every Pro block

shadcncraft Pro blocks and components now mirror correctly for Arabic, Hebrew, Persian and other right-to-left languages, with the same code you already install.
Ha
Hamish O'Neill
3 min read
A settings panel in Arabic, laid out right to left

Every Pro block, component and pattern in the shadcncraft React registry now supports right-to-left layouts. If you build for Arabic, Hebrew, Persian or Urdu readers, the blocks mirror correctly with the same code you already install. Nothing changes for left-to-right projects.

What changed

The blocks now use logical classes, such as ms-2, ps-4, start-0 and border-s, instead of left and right. That covers more than spacing:

  • Layout: positioning, borders, radii, edge fades and shadows all follow the reading direction.
  • Navigation: sidebars open from the right and directional icons, such as chevrons and arrows, flip.
  • Data: data grid column pinning and keyboard navigation follow the reading direction, and Gantt timelines run right to left, including when you drag a bar.
  • Carousels scroll the way right-to-left readers expect.

Some things should not mirror, so they don't. Signed amounts, phone numbers, account and card numbers stay readable inside right-to-left text. Phone, email, URL and card inputs read left to right. Charts, code samples and maps stay left to right by design.

Set up your project

You need three things:

  1. Set "rtl": true in your components.json. The shadcn CLI then converts shadcn's own primitives when it installs them.
  2. Wrap your app in shadcn's DirectionProvider with dir="rtl". Without it, Radix Tabs, Accordion, NavigationMenu and ScrollArea stay left to right.
  3. Set lang and dir on <html>, for example <html lang="ar" dir="rtl">.

Then install blocks as usual:

$ pnpm dlx shadcn@latest add @shadcncraft/data-grid-1

If you installed blocks before today, add them again to pick up the changes. The RTL guide has the full setup, including what flips and the known limits.

How we checked it

We captured all 558 blocks right to left and reviewed them, and compared every block left to right against the previous version, pixel by pixel, so existing projects look the same. A test now keeps left and right classes out of the registry, so new blocks support right-to-left from the start.

RTL support is part of Pro React and Pro Figma + React, across every shadcncraft style.

Ha
Hamish O'Neill
Founder, shadcncraft
Ship faster with the shadcn/ui design system
Production-ready blocks and components, 1:1 in Figma and React, built for real products.
SBIOTJ

Join 16,000+ builders shipping with shadcncraft

Design and assemble full pages faster with production-ready blocks built for real products.
  • Production-ready blocks and components
  • Clean React and Tailwind parity
  • Built for SaaS, marketing, and ecommerce teams
Get the design system
Join Now CTA

Real support from the team behind shadcncraft

Get help within 24 hours from the people who build and maintain the system.
Email
Prefer a direct line? Send us a message and we'll get back to you as soon as possible.
Discord
Get quick support, share feedback, or connect with other builders.
Feedback
Got something to say about anything shadcncraft? We'd love to hear it.