Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
protected renderHelperText() {
const classes = {
'mdc-text-field-helper-text--persistent': this.helperPersistent,
};
return html`
<div class="mdc-text-field-helper-line">
<div class="mdc-text-field-helper-text ${classMap(classes)}">${this.helper}</div>
${this.charCounter ? html`<div class="mdc-text-field-character-counter"></div>` : ''}
</div>
`;
}
render() {
const classes = {
'mdc-text-field--disabled': this.disabled,
'mdc-text-field--no-label': !this.label,
'mdc-text-field--outlined': this.outlined,
'mdc-text-field--fullwidth': this.fullWidth,
};
return html`
<div class="mdc-text-field mdc-text-field--textarea ${classMap(classes)}">
${
this.charCounter ? html`<div></div>` :
''}
${this.renderInput()}
${this.outlined ? this.renderOutlined() : this.renderLabelText()}
</div>
${this.helper ? this.renderHelperText() : ''}
`;
}