This commit is contained in:
mgabdev
2020-03-25 23:11:32 -04:00
parent 0f01c1bc97
commit 3d0a85cde4
68 changed files with 1206 additions and 1275 deletions

View File

@@ -42,6 +42,7 @@ export default class Text extends PureComponent {
weight: PropTypes.oneOf(Object.keys(WEIGHTS)),
align: PropTypes.oneOf(Object.keys(ALIGNMENTS)),
underline: PropTypes.bool,
htmlFor: PropTypes.string,
}
static defaultProps = {
@@ -60,7 +61,8 @@ export default class Text extends PureComponent {
size,
weight,
underline,
align
align,
htmlFor
} = this.props
const classes = cx(className, {
@@ -93,6 +95,7 @@ export default class Text extends PureComponent {
return React.createElement(
tagName,
{
htmlFor,
className: classes,
},
children,