Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
protected renderLabel() {
return html`
<label id="label">
${this.label}
</label>
`;
}
protected renderLabelText() {
let labelTemplate: TemplateResult|string = '';
if (this.label && !this.fullWidth) {
labelTemplate = html`
<label for="text-field">
${this.label}
</label>`;
}
return html`
${labelTemplate}
<div></div>
`;
}
protected renderOutlined() {
let labelTemplate: TemplateResult|string = '';
if (this.label) {
labelTemplate = html`
<label for="text-field">
${this.label}
</label>
`;
}
return html`
${labelTemplate}
`;
}