scratch-www/src/components/subnavigation/subnavigation.jsx

26 lines
592 B
React
Raw Normal View History

var classNames = require('classnames');
var React = require('react');
require('./subnavigation.scss');
2016-01-14 10:25:03 -05:00
/**
* Container for a custom, horizontal list of navigation elements
* that can be displayed within a view or component.
*/
var SubNavigation = React.createClass({
type: 'SubNavigation',
render: function () {
var classes = classNames(
'sub-nav',
this.props.className
);
return (
<div className={classes}>
{this.props.children}
</div>
);
}
});
module.exports = SubNavigation;