mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
refactor: update/fix JSDoc props
This commit is contained in:
parent
3c04f122b0
commit
d38e6d8be6
204 changed files with 992 additions and 2359 deletions
|
@ -1,31 +1,28 @@
|
|||
<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" | "bottom"} [direction="bottom"]
|
||||
* @type {"top" | "bottom"}
|
||||
*/
|
||||
export let direction = "bottom";
|
||||
|
||||
/**
|
||||
* Set an id for the tooltip div element
|
||||
* @type {string} [id]
|
||||
* @type {string}
|
||||
*/
|
||||
export let id = "ccs-" + Math.random().toString(36);
|
||||
|
||||
/**
|
||||
* Obtain a reference to the button HTML element
|
||||
* @type {null | HTMLButtonElement} [ref=null]
|
||||
* @type {null | HTMLButtonElement}
|
||||
*/
|
||||
export let ref = null;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue