1.0.2 • Published 1 year ago

react-omit-rtl v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

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

PropTypeDefaultDescription
childrenReact.ReactNodeThe content to be wrapped by the component.
omitRTLbooleanfalseWhether to omit RTL direction or not.