Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-with-styles-interface-aphrodite

Package Overview
Dependencies
Maintainers
3
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-with-styles-interface-aphrodite

react-with-styles interface for Aphrodite

  • 2.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
20K
decreased by-11.72%
Maintainers
3
Weekly downloads
 
Created
Source

react-with-styles-interface-aphrodite Version Badge

Build Status dependency status dev dependency status License Downloads

npm badge

Interface to use react-with-styles with Aphrodite.

Import

import aphroditeInterface from 'react-with-styles-interface-aphrodite';

or when you need to disable !important:

import aphroditeInterface from 'react-with-styles-interface-aphrodite/no-important';

Built-in RTL support

react-with-styles-interface-aphrodite now has built-in RTL support. Specifically, it uses rtl-css-js to automatically flip styles (margin, padding, float, textAlign, etc.) in a dir="rtl" context. We recommend using react-with-direction's DirectionProvider at your top-level node to achieve best results.

One caveat for this implementation is that it may cause some trouble when relying on inline styles explicitly. Due to some details of what is known at the time of style creation/resolution, inline styles are converted to classnames when there is a flippable style attribute. If you do not want this behavior or if this behavior breaks your usage, react-with-styles-interface-aphrodite exports a resolveNoRTL method which is exported by react-with-styles as cssNoRTL. This method matches the behavior in past versions (no automatic style flipping).

Keywords

FAQs

Package last updated on 05 Sep 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc