Template Direction
The Crema template is fully RTL supported. On one toggle button, the user can switch between 'Right to left' direction or 'Left to Right' direction.
export const defaultTheme = {
theme: {
spacing: 4,
cardRadius: cardRadius,
direction: LayoutDirection.RTL, //ltr, rtln you can switch theme direction here
palette: {...}
}
}
####### Layout Direction #########(src/shared/constants/AppEnums.js)
export const LayoutDirection = {
RTL: 'rtl',
LTR: 'ltr',
};
Last updated