Package Exports
- stylis-plugin-rtl
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (stylis-plugin-rtl) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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+