theme.direction === "rtl" code example Example: change direction in material ui const theme = createMuiTheme({ direction: 'rtl', });