Skip to content

Commit 76b30ac

Browse files
committed
add subheader component
1 parent 3a97bc2 commit 76b30ac

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

src/elements/Header/Sub.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import React, {Component, PropTypes} from 'react';
2+
import classNames from 'classnames';
3+
import META from 'src/utils/Meta';
4+
5+
export default class Sub extends Component {
6+
static propTypes = {
7+
children: PropTypes.node,
8+
className: PropTypes.string,
9+
}
10+
11+
static _meta = {
12+
library: META.library.semanticUI,
13+
name: 'Sub',
14+
type: META.type.element,
15+
};
16+
17+
render() {
18+
const classes = classNames(
19+
'sub',
20+
this.props.className,
21+
'header'
22+
);
23+
return (
24+
<div className={classes}>
25+
{this.props.children}
26+
</div>
27+
);
28+
}
29+
}

0 commit comments

Comments
 (0)