Skip to content
↔️ stylis RTL plugin based on CSSJanus
JavaScript
Branch: master
Clone or download
This branch is 5 commits ahead of FindHotel:master.

Latest commit

Latest commit 9ebfc8b Dec 29, 2019

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
flow-typed/npm Initial version Aug 15, 2018
src add static name property to plugin (#2) Dec 29, 2019
.babelrc Initial version Aug 15, 2018
.flowconfig Initial version Aug 15, 2018
.gitignore Initial version Aug 15, 2018
.npmignore Initial version Aug 15, 2018
README.md v1 Dec 29, 2019
package.json add s-c keyword Dec 29, 2019
yarn.lock switch to yarn Dec 29, 2019

README.md

stylis-plugin-rtl

Stylis RTL plugin based on CSSJanus

Usage with styled-components v5+

import styled, { StyleSheetManager } from "styled-components";
import rtlPlugin from "stylis-plugin-rtl";

const Box = styled.div`
  padding-left: 10px;
`;

function MakeItRTL() {
  return (
    <StyleSheetManager stylisPlugins={[rtlPlugin]}>
      <Box>My padding will be on the right!</Box>
    </StyleSheetManager>
  );
}

This is a fork of stylis-rtl for use with styled-components v5+

You can’t perform that action at this time.