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
It's becoming popular for styleless component libraries to write state into data attributes, is there a syntax for styletron to read that state?
Here is an example from Radix UI using the stiches CSS-in_JS lib:
const StyledTab = styled(Tabs.Tab, { flexShrink: 0, padding: '10px 20px', color: 'slategray', userSelect: 'none', '&:hover': { color: 'black' }, '&[data-state="active"]': { // we read state from data attributes and use it to style the element color: 'black', boxShadow: 'inset 0 -1px 0 0 currentColor, 0 1px 0 0 currentColor', }, });
If not, can I suggest a feature like this to be included?
thanks
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It's becoming popular for styleless component libraries to write state into data attributes, is there a syntax for styletron to read that state?
Here is an example from Radix UI using the stiches CSS-in_JS lib:
If not, can I suggest a feature like this to be included?
thanks
The text was updated successfully, but these errors were encountered: