Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linaria support for styled components #177

Open
softmarshmallow opened this issue Aug 20, 2022 · 0 comments
Open

linaria support for styled components #177

softmarshmallow opened this issue Aug 20, 2022 · 0 comments
Labels
good first issue Good for newcomers

Comments

@softmarshmallow
Copy link
Member

softmarshmallow commented Aug 20, 2022

https://github.com/callstack/linaria

Note.

linaria is a static css generator, so we cannot use linaria for styled components with props givven. If configured, linaria will be the first choice and fallback to other styled library like @emotion/styled or styled-components

React

  • import { styled } from "linaria/react"
  • import { styled } from "@linaria/react"

Preact

linaria suggests us to use the same linaria/react module also for Preact.

Vue - not supported

esbuild

@softmarshmallow softmarshmallow added the good first issue Good for newcomers label Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant