xstyled-styled-components 4.0.0
Install from the command line:
Learn more about npm packages
$ npm install @wttj/xstyled-styled-components@4.0.0
Install via package.json:
"@wttj/xstyled-styled-components": "4.0.0"
About this version
A utility-first CSS-in-JS framework built for React.
npm install @xstyled/styled-components styled-components
See the documentation at xstyled.dev for more information about using xstyled!
Quicklinks to some of the most-visited pages:
import { x } from '@xstyled/styled-components'
function Example() {
return (
<x.div p={{ _: 3, md: 6 }} bg="white" display="flex" spaceX={4}>
<x.div flexShrink={0}>
<x.img h={12} w={12} src="/img/logo.svg" alt="xstyled Logo" />
</x.div>
<x.div>
<x.h4
fontSize={{ _: 'md', lg: 'xl' }}
fontWeight="medium"
color="black"
>
xstyled
</x.h4>
<x.p color="gray-500">A CSS-in-JS framework built for React.</x.p>
</x.div>
</x.div>
)
}
Licensed under the MIT License, Copyright © 2019-present Greg Bergé.
See LICENSE for more information.
Details
- xstyled-styled-components
- WTTJ
- 10 months ago
- MIT
- 4 dependencies
Assets
- xstyled-styled-components-4.0.0.tgz
Download activity
- Total downloads 21
- Last 30 days 0
- Last week 0
- Today 0