1.0.2 • Published 1 year ago
react-omit-rtl v1.0.2
react-omit-rtl
A React component to omit RTL (right-to-left) text direction.
Installation
npm install react-omit-rtl
Usage
import React from "react";
import OmitRTL from "react-omit-rtl";
function App() {
return (
<OmitRTL omitRTL={true}>
<p>This text will not have RTL direction.</p>
</OmitRTL>
);
}
export default App;
Props
Prop | Type | Default | Description |
---|---|---|---|
children | React.ReactNode | The content to be wrapped by the component. | |
omitRTL | boolean | false | Whether to omit RTL direction or not. |