extpoint-yii2
Version:
JavaScript part for projects on ExtPoint Yii2 Boilerplate and yii2-core
33 lines (27 loc) • 734 B
JavaScript
import React from 'react';
import PropTypes from 'prop-types';
import {html} from 'components';
const bem = html.bem('FieldHintView');
export default class FieldHintView extends React.Component {
static propTypes = {
className: PropTypes.string,
hint: PropTypes.oneOfType([
PropTypes.string,
PropTypes.bool,
PropTypes.element,
]),
};
render() {
return (
<div
className={bem(
bem.block(),
this.props.className,
'help-block',
)}
>
{this.props.hint}
</div>
);
}
}