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>
direction
TextDirection
(default: 'ltr'
)
TextDirection
'ltr'
- Name
- Description
The reading direction of the text
- Type
TextDirection
- Default
'ltr'
children
ReactNode
ReactNode
- Name
- Type
ReactNode