Blame view
imports/client/views/core/Label.js
308 Bytes
07ce8d1c9
|
1 2 3 4 |
import React, { PropTypes } from 'react' const Label = props => ( <label> |
b66d66a1a
|
5 |
{props.children} {' '} |
07ce8d1c9
|
6 7 8 9 10 11 12 13 14 15 16 17 |
{props.required && ( <span className="text-danger">*</span> )} </label> ) Label.propTypes = { children: PropTypes.string.isRequired, required: PropTypes.bool, } export default Label |