6.2.0 • Published 13 days ago

@linaria/babel-plugin-interop v6.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
13 days ago

@linaria/babel-plugin-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 @linaria/babel-plugin-interop

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

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

13 days ago

6.1.0

3 months ago

6.0.0

5 months ago

5.0.0

8 months ago

4.5.0

10 months ago

4.5.1

10 months ago

4.0.1

1 year ago

4.0.0

2 years ago

4.0.0-beta.1

2 years ago

4.0.0-beta.0

2 years ago

3.0.0-beta.19

2 years ago

3.0.0-beta.20

2 years ago

3.0.0-beta.7

3 years ago

3.0.0-beta.6

3 years ago