We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
text-ted
Hello people.
I have, say, a blue button. In 10 places of my app the button should be red. Here is what I'm doing atm:
<template> <Button class="text-white bg-red hover:text-orange shadow-red"/> </template>
I'm looking to avoid writing this class="text-white bg-red hover:text-orange shadow-red" 10 times. I'd rather have something like:
class="text-white bg-red hover:text-orange shadow-red"
export default const RedButton = Button.class`text-white bg-red hover:text-orange shadow-red`;
And then just reuse it everywhere:
<template> <RedButton/> </template>
The above approach is the syntax I really like in React's Styled-Components.
Is it possible with (or without?) styled-vue?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello people.
I have, say, a blue button. In 10 places of my app the button should be red. Here is what I'm doing atm:
I'm looking to avoid writing this
class="text-white bg-red hover:text-orange shadow-red"
10 times. I'd rather have something like:And then just reuse it everywhere:
The above approach is the syntax I really like in React's Styled-Components.
Is it possible with (or without?) styled-vue?
The text was updated successfully, but these errors were encountered: