Skip to content

Instantly share code, notes, and snippets.

@marr
Created May 22, 2015 18:52
Show Gist options
  • Save marr/4e03b52366e2db09a74c to your computer and use it in GitHub Desktop.
Save marr/4e03b52366e2db09a74c to your computer and use it in GitHub Desktop.
'use strict';
var React = require('react');
module.exports = React.createClass({
propTypes: {
width: React.PropTypes.number,
height: React.PropTypes.number
},
getDefaultProps: function() {
return {
width: 10,
heigh: 8
}
},
render: function() {
return (
<svg width={this.props.width} height={this.props.height} viewBox="0 0 10 8">
<title>Triangle</title>
<defs></defs>
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="triangle" fill="#00A0D8">
<g id="Page-1">
<g id="Desktop-HD-2-Copy-17">
<path d="M0.5,0.364 L9.5,0.364 L5,7.364 L0.5,0.364 L0.5,0.364 Z" id="Triangle-3"></path>
</g>
</g>
</g>
</g>
</svg>
);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment