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
Vue support #273
Comments
Maybe you can just do something like that? |
@eatsjobs sure we can do that, but I mean the |
Yeah I understood. but I don't think it's in the 1.0 roadmap so I don't think you can have it soon |
why though 😂 it isn't hard right? just allow the babel plugin to transform |
@egoist We are happy to accept a PR with Vue support, we are fine with both integrating Vue inside linaria itself ( |
@egoist are you working on this? |
@vinicius73 No but I made https://github.com/egoist/styled-vue which is pretty much linaria for Vue a while ago |
In case it's interesting for you, I had a Nuxt module lying around for some time integrating Linaria. I open-sourced it in case it's interesting for someone. It works for JSX, and you can pass the generated class to a Vue template, but it's not possible to directly call the Install it via Then add it to your Nuxt config: // nuxt.config.js
export default {
modules: [
'nuxt-linaria',
],
} Usage with JSX: <script>
import { css } from 'linaria'
export default {
render: h => <div class={css`background: red`}>Hello world</div>,
}
</script> Usage within a template: <template>
<div :class="style">Hello world</div>
</template> <script>
import { css } from 'linaria'
export default {
computed: {
style: () => css\`background: red\`,
},
}
</script> Let me know if this is helpful. |
Do you want to request a feature or report a bug?
feature
What is the current behavior?
There's only
styled
for React, I'm trying to work on a Vue.js integration butlinaria/src/babel/extract.js
Lines 99 to 109 in a1d1b5a
Solutions
styled
from other modules likevue-linaria
linaria/vue
😅The text was updated successfully, but these errors were encountered: