import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import { cn } from "@/lib/utils"; const useStyles = makeStyles(theme => ({ // RTL-aware text alignment and direction textContent: { // ✅ convertible → text-left (LTR) / text-right (RTL) direction: 'ltr', // ❌ unconvertible - needs manual RTL handling unicodeBidi: 'embed' }, // RTL-aware borders cardWithBorder: { borderLeft: '4px solid blue', // Mixed: border-l-4 border-blue-600 (needs RTL flip) borderRight: '1px solid #ccc', // Mixed: border-r border-gray-300 (needs RTL flip) borderTop: '2px solid red' }, // Complex RTL scenario with transforms rtlIcon: { transform: 'scaleX(-1)' }, // Grid with RTL considerations gridContainer: { // ✅ convertible → gap-4 textAlign: 'start' // ✅ convertible → text-start (RTL-aware) } })); export const RTLDirectionComponent: React.FC = () => { const classes = useStyles(); return
This content should adapt to RTL layouts