refactor: update/fix JSDoc props

This commit is contained in:
Eric Liu 2020-11-04 06:04:25 -08:00
commit d38e6d8be6
204 changed files with 992 additions and 2359 deletions

View file

@ -1,25 +1,22 @@
<script>
/**
* Specify the tooltip text
* @type {string} [tooltipText=""]
*/
/** Specify the tooltip text */
export let tooltipText = "";
/**
* Set the alignment of the tooltip relative to the icon
* @type {"start" | "center" | "end"} [align="center"]
* @type {"start" | "center" | "end"}
*/
export let align = "center";
/**
* Set the direction of the tooltip relative to the icon
* @type {"top" | "right" | "bottom" | "left"} [direction="bottom"]
* @type {"top" | "right" | "bottom" | "left"}
*/
export let direction = "bottom";
/**
* Set an id for the span element
* @type {string} [id]
* @type {string}
*/
export let id = "ccs-" + Math.random().toString(36);
@ -29,7 +26,7 @@
*/
export let ref = null;
$: hidden = false;
let hidden = false;
</script>
<svelte:body