# Direction

Tells the components inside it whether text reads left to right or right to left, so menus, popups, sliders and keyboard arrows follow it. Wrap the app once, with the same direction as the `dir` attribute on `<html>`.

Package: `@kela-systems/ui-components` 4.1.0

```tsx
import { DirectionProvider, useDirection } from "@kela-systems/ui-components";
```

## Props

A `className` on a part adds layout only: placement, sizing and spacing. Pick a look with a variant.

### DirectionProvider

Also takes the props of `@base-ui/react/direction-provider`.

### Also exported

- `useDirection` (hook)
