diff --git a/lib/components/Badge/Badge.js b/lib/components/Badge/Badge.js new file mode 100644 index 0000000..b91933d --- /dev/null +++ b/lib/components/Badge/Badge.js @@ -0,0 +1,13 @@ +import React from 'react'; +import PropTypes from 'prop-types'; + +const Badge = ({ children }) => ( + { children } + ); + +Badge.propTypes = { + /** Content for the button */ + children: PropTypes.node.isRequired, +}; + +export default Badge; diff --git a/lib/components/Badge/index.js b/lib/components/Badge/index.js new file mode 100644 index 0000000..593258f --- /dev/null +++ b/lib/components/Badge/index.js @@ -0,0 +1 @@ +export { default } from './Badge'; diff --git a/lib/components/index.js b/lib/components/index.js index db70093..81cf928 100644 --- a/lib/components/index.js +++ b/lib/components/index.js @@ -1,5 +1,7 @@ +import Badge from './Badge'; import Button from './Button'; export { - Button, // eslint-disable-line import/prefer-default-export + Badge, + Button, };