Web: Components: Label: Now accepts elements as text

This commit is contained in:
Dmitry Kulak 2022-02-02 13:50:23 +03:00
parent aed957fb36
commit 5e4da4d32d

View File

@ -50,8 +50,8 @@ Label.propTypes = {
truncate: PropTypes.bool,
/** The field ID to which the label is attached */
htmlFor: PropTypes.string,
/** Text */
text: PropTypes.string,
/** Text or element */
text: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
/** Sets the 'display' property */
display: PropTypes.string,
/** Class name */