+1
-1
@@ -9,3 +9,3 @@ 'use strict' | ||
| bar = ( | ||
| <div style={{background: bar}}> | ||
| <div style={{background: this.props.barBackground, color: this.props.barColor}}> | ||
| <TextCell {...this.props}>{this.props.bar}</TextCell> | ||
@@ -12,0 +12,0 @@ </div> |
+2
-2
| { | ||
| "name": "react-tile", | ||
| "version": "0.0.1-beta.1", | ||
| "version": "0.0.1-beta.2", | ||
| "description": "A tile ui component to display text and other media.", | ||
@@ -21,3 +21,3 @@ "main": "dist/index.js", | ||
| "serve": "npm run build && parallelshell 'npm run watch -s' 'npm run watchify -s' 'npm run livereload -s' 'npm run open -s'", | ||
| "dist": "browserify index.jsx > dist/index.js", | ||
| "dist": "babel index.jsx > dist/index.js", | ||
| "prepublish": "npm run dist && semantic-release pre", | ||
@@ -24,0 +24,0 @@ "postpublish": "semantic-release post" |
+2
-0
@@ -33,2 +33,3 @@ # react-tile | ||
| * [`width`](#width): define the width of the tile | ||
| * `color`: set text color `SquareBox`'s content | ||
| * [`background`](#background): provide the background for `SquareBox` | ||
@@ -38,2 +39,3 @@ * [`backgroundSize`](#backgroundSize): provide the backgroundSize for `SquareBox` | ||
| * [`barBackground`](#barbackground): provides background styles as a string | ||
| * `barColor`: set text color of `TextCell` | ||
@@ -40,0 +42,0 @@ #### width |
659499
0.5%16908
0.7%77
2.67%