rtl support #134
Answered
by
garronej
thomaskous
asked this question in
Q&A
rtl support
#134
-
is there rtl support? |
Beta Was this translation helpful? Give feedback.
Answered by
garronej
Dec 8, 2022
Replies: 1 comment
-
Hello @thomaskous, No, not yet but thank you for the question. Whay would be a fitting API in your oppigion? import { TssDirectionProvider } from "tss-react";
import { useLang } from "i18nifty"; //For example
export function App(){
const { lang } = useLang();
return (
<TssDirectionProvider direction={lang === "ar" ? "ltr" : "rtl"}>
{/* ... rest of the app */}
</TssDirectionProvider>
);
); I could use this a reference: https://github.com/alitaheri/jss-rtl Anyway, no it's not supported yet, PR are wellcome. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
thomaskous
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello @thomaskous,
No, not yet but thank you for the question.
I'll be interested in adding RTL support.
Whay would be a fitting API in your oppigion?
A provider would integrate nicely with i18n libraries, something like:
I could use this a reference: https://github.com/alitaheri/jss-rtl
Anyway, no it's not supported yet, PR are wellcome.