chore: add more type docs

This commit is contained in:
Eric Liu 2020-07-25 11:30:45 -07:00
commit c3f924c25a
45 changed files with 517 additions and 50 deletions

View file

@ -4,8 +4,23 @@
* @type {"active" | "inactive" | "finished" | "error"} [status="active"]
*/
export let status = "active";
/**
* Set the loading description
* @type {string} [description]
*/
export let description = undefined;
/**
* Define the ARIA label for the loading icon
* @type {string} [iconDescription="Expand/Collapse"]
*/
export let iconDescription = undefined;
/**
* Specify the timeout delay (ms) after `status` is set to "success"
* @type {number} [successDelay=1500]
*/
export let successDelay = 1500;
import { createEventDispatcher, afterUpdate, onMount } from "svelte";