Appica UIUI 1.0.0

useDirection

Read the current text direction.


useDirection returns the current reading direction. Use it when your own component needs to branch on direction — flipping a chevron, choosing an offset sign, or mirroring a custom layout.

Usage

Return value

Returns 'ltr' \| 'rtl'. The value comes from the nearest DirectionProvider, defaulting to 'ltr' when there is none.

© 2026 Appica UI. A free component library, crafted by the Appica team.