Socket
Socket
Sign inDemoInstall

babel-plugin-linaria-interop

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    babel-plugin-linaria-interop

This plugin allows to interpolate Linaria components inside styled-components and Emotion: ```javascript import styled from 'styled-components'; import { Title } from './Title.styled'; // Linaria component


Version published
Weekly downloads
4
decreased by-42.86%
Maintainers
1
Install size
151 kB
Created
Weekly downloads
 

Readme

Source

babel-plugin-linaria-interop

This plugin allows to interpolate Linaria components inside styled-components and Emotion:

import styled from 'styled-components';
import { Title } from './Title.styled'; // Linaria component

const Article = () => { /* … */ };

export default styled(Article)`
  & > ${Title} {
    color: green;
  }
`;

Quick start

Install the plugin first:

npm install --save-dev babel-plugin-linaria-interop

Then add linaria-interop to your babel configuration before styled-components:

{
  "plugins": [
    ["linaria-interop", { "library": "styled-components" }],
    "styled-components"
  ]
}

FAQs

Last updated on 27 May 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc