File: direction-provider.md | Updated: 11/15/2025
ThemesThemes PrimitivesPrimitives IconsIcons ColorsColors
Documentation Case studies Blog
Search
/
Introduction Getting started Accessibility Releases
Styling Animation Composition Server-side rendering
Accordion
Alert Dialog
Aspect Ratio
Avatar
Checkbox
Collapsible
Context Menu
Dialog
Dropdown Menu
Form
Preview
Hover Card
Label
Menubar
Navigation Menu
One-Time Password Field
Preview
Password Toggle Field
Preview
Popover
Progress
Radio Group
Scroll Area
Select
Separator
Slider
Switch
Tabs
Toast
Toggle
Toggle Group
Toolbar
Tooltip
Accessible Icon Direction Provider Portal Slot Visually Hidden
Utilities
Wraps your app to provide global reading direction.
Enables all primitives to inherit global reading direction.
Install the component from your command line.
npm install @radix-ui/react-direction
Import the component.
import { Direction } from "radix-ui";
export default () => <Direction.Provider />;
When creating localized apps that require right-to-left (RTL) reading direction, you need to wrap your application with the Direction.Provider component to ensure all of the primitives adjust their behavior based on the dir prop.
| Prop | Type | Default |
| --- | --- | --- |
| dir<br><br>Prop description | enum<br><br>See full type | No default value |
Use the direction provider.
import { Direction } from "radix-ui";
export default () => (
<Direction.Provider dir="rtl">{/* your app */}</Direction.Provider>
);
PreviousAccessible Icon
NextPortal