Founding price: $35, then $79.99 after 23:59 UTC on 4 November, then $79.99
Get ProAn RTL/LTR direction provider that feeds reading direction to every Radix-based primitive beneath it.
This item has no props to tune. Use the lens above to change theme, density, direction and more.
Wrap your app (or any subtree) in DirectionProvider. Every Radix-based tealmac UI
primitive beneath it — menus, sliders, tabs, toasts, and more — will mirror to
match. Set the DOM dir attribute alongside it so plain CSS and text flow follow too.
Read the current direction anywhere below the provider with useDirection:
DirectionProvider
| Prop | Type | Default | Description |
|---|---|---|---|
direction | "ltr" | "rtl" | - | Friendly alias for dir; wins when both are set. |
dir | "ltr" | "rtl" | - | Reading direction passed through to Radix. |
children | ReactNode | - | The subtree that inherits the direction. |