Direction Provider

Enables RTL behavior for Base UI components.

View as Markdown

API reference

Import the component and wrap it around your app:

Anatomy
direction

TextDirection

(default:

'ltr'

)
Description

The reading direction of the text

Type
'ltr' | 'rtl' | undefined
Default

'ltr'

children

ReactNode

Type
React.ReactNode