Aesthetic - Direction Converter
Aesthetic addon to convert direction between LTR and RTL.
import directionConverter from '@aesthetic/addon-direction';
import { configure } from '@aesthetic/<integration>';
import { createClientEngine } from '@aesthetic/style';
// When using entire Aesthetic framework
configure({
directionConverter,
});
// When using CSS-in-JS engine directly
const engine = createClientEngine({
direction: 'ltr', // Default
directionConverter,
});
Installation
yarn add @aesthetic/addon-direction