Skip to content

Commit

Permalink
feat(atoms): add FormSubTitle component
Browse files Browse the repository at this point in the history
  • Loading branch information
ej9x committed May 29, 2018
1 parent a5b4e29 commit 49c1752
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/atoms/dataEntry/FormSubTitle/FormSubTitle.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// @flow

import React from 'react';
import { Text } from '../../typography/Text';

type SubTitleProps = {|
children?: string,
text?: string,
size?: PropSizes,
|}

const FormSubTitle = ({ children, text, size }: SubTitleProps) => (
<Text size={ size } bold>{ children || text }</Text>
);

export { FormSubTitle };
3 changes: 3 additions & 0 deletions src/atoms/dataEntry/FormSubTitle/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// @flow
export { FormSubTitle } from './FormSubTitle';

0 comments on commit 49c1752

Please sign in to comment.