@ambewas/styled-utils
v1.1.1
Published
a set of utility functions for styled components and css-in-js
Downloads
3
Readme
styled-utils
a set of utility functions for styled components and css-in-js
Install
npm install --save @ambewas/styled-utils
Usage
import React, { Component } from 'react'
import {padding, margin} from '@ambewas/styled-utils'
export default class App extends Component {
render() {
return (
<div className={padding(2, 3, 2, 1) + " " + margin(2, 3, 2, 1)}>
hello
</div>
)
}
}
License
MIT © ambewas