4.0.0 • Published 12 months ago

@conectate/ct-spinner v4.0.0

Weekly downloads
7
License
BSD-3-Clause
Repository
github
Last release
12 months ago

ct-spinner

Spinner web component

Install

yarn add @conectate/ct-spinner
#or
npm i @conectate/ct-spinner

Usage

On HTML

<!-- Active -->
<ct-spinner active="true"></ct-spinner>
<!-- Inactive -->
<ct-spinner active="false"></ct-spinner>

On LitElement with typescript

import { LitElement, css, customElement, html, property } from "lit";

@customElement("ct-main")
export class CtMain extends LitElement {
	@property({ type: Boolean, reflect: true }) active = true;

	static styles = css`
		:host {
			display: block;
		}
	`;

	render() {
		return html`<ct-spinner></ct-spinner>`;
	}
}

DEMO

<ct-spinner></ct-spinner>

Properties

PropertyAttributeTypeDefault
activeactivebooleantrue

CSS Custom Properties

PropertyDescription
--ct-spinner-1Spinner Color 1
--ct-spinner-2Spinner Color 2
4.0.0

12 months ago

3.9.0

2 years ago

3.8.1

2 years ago

3.11.0

2 years ago

3.8.0

2 years ago

3.10.0

2 years ago

3.12.0

2 years ago

3.7.5

2 years ago

3.7.4

3 years ago

3.7.3

3 years ago

3.7.1

3 years ago

3.7.0

3 years ago

3.6.0

3 years ago

3.5.0

4 years ago

3.4.0

4 years ago

3.2.1

4 years ago

3.2.0

4 years ago

3.1.0

4 years ago

3.0.0

4 years ago

1.5.0

4 years ago

1.4.3

4 years ago

1.4.2

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago