Documentation Index
Fetch the complete documentation index at: https://mintlify.com/mui/base-ui/llms.txt
Use this file to discover all available pages before exploring further.
DirectionProvider
Enables RTL (right-to-left) behavior for Base UI components.Import
Component Signature
Props
The content to be wrapped by the direction provider.
The reading direction of the text. Can be
'ltr' (left-to-right) or 'rtl' (right-to-left).Type Definitions
DirectionProvider.Props
TextDirection
useDirection Hook
A hook to access the current text direction from context.Signature
Return Value
Returns the current text direction ('ltr' or 'rtl'). Defaults to 'ltr' if used outside a DirectionProvider.