Return value
| Prop | Type | Default | Attributes |
|---|---|---|---|
[0] rtl | boolean | No default value— | |
[1] setRTL | function | No default value— |
useRTL is a direction hook for reading and switching the page's reading direction. It returns whether the page is right-to-left with a function to change it.
Import
import { useRTL } from '@vortexlabs/vortex';Other links