react-with-style

0.0.1 • Public • Published

react-with-style

Enhance a React component with styles.

Installation

npm install --save react-with-style

Usage

import { withStyle } from 'react-with-style'
 
import MyComponent from './MyComponent'
 
export default withStyle({
  textAlign: 'center'
})(MyComponent)

API

withStyle([style])

Passes additional styles to the wrapped component. The provided styles take precedence over styles from the owner.

Parameters

  • [style] (Object): Styles to pass to the wrapped component.

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    1

Package Sidebar

Install

npm i react-with-style

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • apalm