@ambewas/styled-utils

1.1.1 • Public • Published

styled-utils

a set of utility functions for styled components and css-in-js

NPM JavaScript Style Guide

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

Readme

Keywords

none

Package Sidebar

Install

npm i @ambewas/styled-utils

Weekly Downloads

2

Version

1.1.1

License

MIT

Unpacked Size

228 kB

Total Files

6

Last publish

Collaborators

  • ambewas