react-notification-center
Version:
react-notification-center keep all your notification in a single place
16 lines (13 loc) • 346 B
JavaScript
import React from 'react';
import cn from 'classnames';
const Tag = props => (
<span className={cn('notification-tag', props.type)}>
{props.children}
</span>
);
Tag.displayName = 'NotificationTagComponent';
Tag.propTypes = {
type: React.PropTypes.string.isRequired,
children: React.PropTypes.node
};
export default Tag;