Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit d09551b

Browse files
committed
Add H3Text component
1 parent 2795c73 commit d09551b

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/component/text.js

+21
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,27 @@ H1Text.propTypes = {
7171
style: TextPropTypes.style,
7272
};
7373

74+
//
75+
// H3 Text
76+
//
77+
78+
const h3Styles = StyleSheet.create({
79+
text: {
80+
fontFamily: 'OpenSans Regular',
81+
fontSize: font.sizeM,
82+
lineHeight: font.lineHeightM,
83+
},
84+
});
85+
86+
export const H3Text = ({ children = '', style }) => (
87+
<Text style={[h3Styles.text, style]}>{children.toUpperCase()}</Text>
88+
);
89+
90+
H3Text.propTypes = {
91+
children: PropTypes.string.isRequired,
92+
style: TextPropTypes.style,
93+
};
94+
7495
//
7596
// H4 Text
7697
//

0 commit comments

Comments
 (0)