Direction Provider
Enables RTL behavior for Base UI components.
View as MarkdownAPI reference
Import the component and wrap it around your app:
Anatomy
import { DirectionProvider } from '@base-ui-components/react/direction-provider';
<DirectionProvider>
  {/* Your app or a group of components */}
</DirectionProvider>directionTextDirection
(default: 'ltr'
)
TextDirection'ltr'- Name
- Description
- The reading direction of the text 
- Type
- 'ltr' | 'rtl' | undefined
- Default
- 'ltr'
childrenReactNode
ReactNode- Name
- Type
- React.ReactNode