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
lol. Was bored and made this, works well with yo-yo and choo. Based on styled-components for React.
yo-yo
choo
styled-components
npm install --save styled-elements
Usage
import styled from 'styled-elements'; const Header = styled.h2` color: #333; `; const MyButton = styled.button` padding: 10px; border-radius: ${0}px; background: #F1F1F1; &:hover { background: #555; } `; const Wrapper = styled.div` width: 500px; border: 1px solid #aaa; @media (min-width: 400px) { width: 100%; background: #F1F1F1; } `; document.body.appendChild(Wrapper()( Header()('My header!'), MyButton({ onclick: () => console.log('yay!') })( 'Do Something' ) ));
See: https://github.com/SilentCicero/styled-elements
The text was updated successfully, but these errors were encountered:
No branches or pull requests
lol. Was bored and made this, works well with
yo-yo
andchoo
. Based onstyled-components
for React.Usage
See: https://github.com/SilentCicero/styled-elements
The text was updated successfully, but these errors were encountered: