Direction Provider

Enables RTL behavior for Base UI components.

View as Markdown

API reference

Import the component and wrap it around your app:

Anatomy
directionTextDirection(default: 'ltr')
Description

The reading direction of the text

Type
'ltr' | 'rtl' | undefined
Default
'ltr'
childrenReactNode
Type
React.ReactNode