To switch the direction dynamically, you just need to apply the code as mentioned below:
const {setTheme} = useJumboTheme(); setTheme({direction: "rtl"}); document.querySelector("body") .setAttribute("dir", "rtl")
Last updated 2 years ago