umami/components/common/Tag.js

16 lines
364 B
JavaScript
Raw Normal View History

2020-10-09 21:39:03 +02:00
import React from 'react';
2021-02-16 14:08:29 +01:00
import PropTypes from 'prop-types';
2020-10-09 21:39:03 +02:00
import classNames from 'classnames';
import styles from './Tag.module.css';
2021-02-16 14:08:29 +01:00
function Tag({ className, children }) {
2020-10-09 21:39:03 +02:00
return <span className={classNames(styles.tag, className)}>{children}</span>;
}
2021-02-16 14:08:29 +01:00
Tag.propTypes = {
className: PropTypes.string,
children: PropTypes.node,
};
export default Tag;