# Direction support

DUI components use logical layout utilities wherever direction matters. Set the document direction at the application boundary:

```tsx
<html dir="rtl">
  <body>{children}</body>
</html>
```

For left-to-right layouts:

```tsx
<html dir="ltr">
  <body>{children}</body>
</html>
```