Right-to-left support
Pro blocks, components and patterns now mirror correctly for Arabic, Hebrew, Persian and other right-to-left languages.
Pro blocks, components, ui/pro-* primitives, hooks and style markers now use logical (start and end) classes, so they mirror correctly in right-to-left layouts. Nothing changes for left-to-right projects.
- Layout: spacing, positioning, borders, radii, edge fades and shadows flip.
- Interaction: sidebars open from the right, directional icons flip, data grid pinning and keyboard navigation follow the reading direction, and Gantt bars drag the right way.
- Numbers: signed amounts, phone, account and card numbers stay readable inside right-to-left text. Phone, email, URL and card inputs read left to right.
- By design: charts, code samples and maps stay left to right.
To set up a project, set "rtl": true in components.json, wrap your app in shadcn's DirectionProvider and set lang and dir on <html>. Add existing blocks again to pick up the changes.
