---
title: "useDirection"
description: "Access the current direction"
canonical_url: "https://vinicunca.dev/akar/utilities/use-direction"
---
# useDirection

> Access the current direction

## Usage

```ts
import { useDirection } from 'akar';

// With ConfigProvider setup as follows
// <ConfigProvider dir="rtl">
const locale = useDirection(); // rtl
```

```ts
import { useDirection } from 'akar';

// With ConfigProvider setup as follows
// <ConfigProvider dir="rtl">
const locale = useDirection('ltr'); // ltr
```


## Sitemap

See the full [sitemap](https://vinicunca.dev/sitemap.md) for all pages.
