chore: add more prop annotations

This commit is contained in:
Eric Liu 2020-07-25 06:26:49 -07:00
commit 773b18d314
75 changed files with 877 additions and 137 deletions

View file

@ -1,8 +1,32 @@
<script>
/**
* Set to `true` to use the small variant
* @type {boolean} [small=false]
*/
export let small = false;
/**
* Set to `false` to disable the active state
* @type {boolean} [active=true]
*/
export let active = true;
/**
* Set to `false` to disable the overlay
* @type {boolean} [withOverlay=false]
*/
export let withOverlay = true;
/**
* Specify the label description
* @type {string} [description="Active loading indicator"]
*/
export let description = "Active loading indicator";
/**
* Set an id for the label element
* @type {string} [id]
*/
export let id = "ccs-" + Math.random().toString(36);
$: spinnerRadius = small ? "26.8125" : "37.5";