class-props
React component for quickly applying multiple classNames – great for libraries like Tachyons and Basscss
Last updated 2 years ago by jxnblk .
MIT · Original npm · Tarball · package.json
$ cnpm install class-props 
SYNC missed versions from official npm registry.

class-props

React component for quickly applying multiple classNames – great for libraries like Tachyons and Basscss

npm i class-props
import React from 'react'
import Base from 'class-props'

const App = props => (
  <React.Fragment>
    <link ref='stylesheet' href='https://unpkg.com/basscss@8.0.2/css/basscss.min.css' />
    <Base px3 py4>
      <Base is='h1' h1>
        Hello
      </Base>
    </Base>
  </React.Fragment>
)
// Creating a style component
const Heading = props =>
  <Base
    is='h2'
    {...props}
    h2
    mt3
    mb2
  />

MIT License

Current Tags

  • 1.0.0                                ...           latest (2 years ago)

1 Versions

  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (8)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |