Skip to content

rtl support #134

Answered by garronej
thomaskous asked this question in Q&A
Discussion options

You must be logged in to vote

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:

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by thomaskous
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants