public render()

in components/RuiButton/src/RuiButton.ts [119:145]


	public render(): TemplateResult {

		// If href has not been defined use <button>
		if (!this.href && this.behaviour !== 'anchor') {
			return html`
				<button
					class="btn"
					?disabled="${this.disabled}"
					aria-label="${ifDefined(this.label)}"
				>
					<slot></slot>
				</button>
			`;
		}

		// Use <a>
		return html`
			<a
				class="btn"
				href="${ifDefined(this.href)}"
				aria-label="${ifDefined(this.label)}"
				target="${ifDefined(this.target)}"
			>
				<slot></slot>
			</a>
		`;
	}