Skip to content

Commit

Permalink
feat(badge): add new component
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardofaria committed Dec 24, 2019
1 parent 29ffd21 commit 92765a1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
13 changes: 13 additions & 0 deletions lib/components/Badge/Badge.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import React from 'react';
import PropTypes from 'prop-types';

const Badge = ({ children }) => (
<span>{ children }</span>
);

Badge.propTypes = {
/** Content for the button */
children: PropTypes.node.isRequired,
};

export default Badge;
1 change: 1 addition & 0 deletions lib/components/Badge/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './Badge';
4 changes: 3 additions & 1 deletion lib/components/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import Badge from './Badge';
import Button from './Button';

export {
Button, // eslint-disable-line import/prefer-default-export
Badge,
Button,
};

0 comments on commit 92765a1

Please sign in to comment.