Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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() : ''}
`;
}