diff --git a/lib/components/Tab.js b/lib/components/Tab.js index 51090143ed..0eed25a59a 100644 --- a/lib/components/Tab.js +++ b/lib/components/Tab.js @@ -24,6 +24,7 @@ module.exports = React.createClass({ selected: PropTypes.bool, disabled: PropTypes.bool, panelId: PropTypes.string, + activeTabClassName: PropTypes.string, children: PropTypes.oneOfType([ PropTypes.array, PropTypes.object, @@ -49,16 +50,19 @@ module.exports = React.createClass({ }, render() { + const className = cx( + 'ReactTabs__Tab', + this.props.className, + { + 'ReactTabs__Tab--selected': this.props.selected, + 'ReactTabs__Tab--disabled': this.props.disabled + }, + this.props.activeTabClassName ? this.props.activeTabClassName : '' + ); + return (