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
'ltr'
directionTextDirection
'ltr'
- Name
- Description
- The reading direction of the text 
- Type
- 'ltr' | 'rtl' | undefined
- Default
- 'ltr'
childrenReactNode
—
childrenReactNode
—- Name
- Type
- React.ReactNode