# useReadingDirection

The reading direction of the page, from `dir` on `<html>`, for the few
components that hand a direction to a library (a slider's thumb, a group's
arrow keys) rather than rely on CSS logical properties. It is `"ltr"` on
the server and during hydration, then follows the page, including a change
made while the page is open.

This is a function exported by `@mapcairn/react`, checked against version 0.2.0.

## Signature

```ts
import { useReadingDirection } from "@mapcairn/react";
 
function useReadingDirection(): ReadingDirection;
```

## Returns

`ReadingDirection`

## See also

- [`ReadingDirection`](https://docs.mapcairn.com/api/react/ReadingDirection.md)

Source: [packages/react/src/hooks/useReadingDirection.ts:32](https://github.com/MapCairn/mapcairn/blob/main/packages/react/src/hooks/useReadingDirection.ts#L32)
