@aesthetic/addon-direction

Aesthetic addon to convert direction between LTR and RTL.

Usage no npm install needed!

<script type="module">
  import aestheticAddonDirection from 'https://cdn.skypack.dev/@aesthetic/addon-direction';
</script>

README

Aesthetic - Direction Converter

Build Status npm version npm deps

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', // Base
  directionConverter,
});

Installation

yarn add @aesthetic/addon-direction

Documentation

https://aestheticsuite.dev