Add title prop to Link class

This commit is contained in:
Alex Liebowitz 2016-05-10 06:34:53 -04:00
parent a6b97d75ab
commit 8a9d883956

View file

@ -18,7 +18,8 @@ var Link = React.createClass({
className = (this.props.button ? 'button-block button-' + this.props.button : 'button-text') +
(this.props.hidden ? ' hidden' : '') + (this.props.disabled ? ' disabled' : '');
return (
<a className={className} href={href} style={this.props.style ? this.props.style : {}} onClick={this.props.onClick}>
<a className={className} href={href} style={this.props.style ? this.props.style : {}}
title={this.props.title} onClick={this.props.onClick}>
{this.props.icon ? icon : '' }
{this.props.label}
</a>