Skip to content

Allows to connect a fela styles object to a react component

License

Notifications You must be signed in to change notification settings

dustin-H/fela-styles-connector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fela-styles-connector

Allows to connect a fela styles object to a react component

This is just a little helper for fela.

Usage

import React, { PropTypes, Component } from 'react'
import felaStylesConnector from 'fela-styles-connector'

const style = {
  header: {
    color: 'red'
  },
  title: {
    fontSize: 42
  }
}

var connect = felaStylesConnector(style)

class Header extends Component {
  render() {
    const {data, actions, styles} = this.props
    return (
      <header className={ styles.header }>
        <span className={ style.title }>My Title!</span>
      </header>
    )
  }
}

export default connect(Header)

About

Allows to connect a fela styles object to a react component

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published