useDirection
Access the current direction
Usage
import { useDirection } from 'akar';
// With ConfigProvider setup as follows
// <ConfigProvider dir="rtl">
const locale = useDirection(); // rtl
import { useDirection } from 'akar';
// With ConfigProvider setup as follows
// <ConfigProvider dir="rtl">
const locale = useDirection('ltr'); // ltr