Skip to content

Commit

Permalink
Add example with custom style prop
Browse files Browse the repository at this point in the history
  • Loading branch information
elrumordelaluz committed Oct 24, 2017
1 parent e7ff9c5 commit 1154bca
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/app/pages/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,18 @@ class Home extends Component {
['#000', '#fff', '#000', 'left'],
['#000', '#64CEAA', '#fff', 'left'],
['#000', '#FD6C6C', '#fff', 'left'],
['#000', '#70B7FD', '#fff', 'left']
['#000', '#70B7FD', '#fff', 'left'],
['linear-gradient(to right, orange, blue, violet)', '#000', '#fff', 'left', { mixBlendMode: 'darken'}]
].map((obj, i) => {
const [backgroundColor, bannerColor, octoColor, direction] = obj;
const [backgroundColor, bannerColor, octoColor, direction, customStyle] = obj;
const height = 200;
return (
<Row
key={i}
style={{
margin: 20,
padding: 20,
backgroundColor: '#f8f8f8',
background: '#f8f8f8',
border: '2px solid #aaa',
borderRadius: 20
}}
Expand All @@ -71,6 +72,7 @@ class Home extends Component {
octoColor={octoColor}
size={80}
direction={direction}
style={customStyle}
/>
</Col>
<Col md={3}>
Expand All @@ -81,6 +83,7 @@ class Home extends Component {
octoColor="${octoColor}"
size={80}
direction="${direction}"
${customStyle ? `style={${JSON.stringify(customStyle)}}` : ''}
/>`}
</pre>
</Col>
Expand Down

1 comment on commit 1154bca

@elrumordelaluz
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Preview of the example with custom style

mixblendmode

Please sign in to comment.