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
Hello, it would be nice to have this in your library, or is it already there?
Example of using arbitrary variants to style elements with a custom selector:
import tw from 'tailwind-styled-components' const Button = tw.button` bg-black [> i]:block [> span]:(text-blue-500 w-10) [div.container]:(grid m-8) ` const Component = () => ( <Button> <i>Icon</i> <span>Label</span> <div className="container">Container</div> </Button> )
The text was updated successfully, but these errors were encountered:
Or even in such structure to implement same logic:
import tw from 'tailwind-styled-components' const Button = tw.button` bg-black i { block } span { text-blue-500 w-10 } div.container { grid m-8 } ` const Component = () => ( <Button> <i>Icon</i> <span>Label</span> <div className="container">Container</div> </Button> )
Sorry, something went wrong.
I believe the second syntax makes more sense and I absolutely love it. Would spare a lot of time and it's cleaner.
Have you tried to use @tailwindcss/nesting ?
No branches or pull requests
Hello, it would be nice to have this in your library, or is it already there?
Example of using arbitrary variants to style elements with a custom selector:
The text was updated successfully, but these errors were encountered: