UNPKG

yoda-common-boilerplate

Version:

Repository of all JCP reusable atoms, molecules and organisms

17 lines (15 loc) 392 B
import classNames from 'classnames/bind'; import React, { Component } from 'react'; import styles from './Label.css'; class Label extends Component { render() { const cx = classNames.bind(styles); const { className, children } = this.props; return ( <span className={cx('label', 'label-' + className)}> {children} </span> ); } } export default Label;