mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 02:41:05 +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
|
@ -2,37 +2,27 @@
|
|||
/**
|
||||
* Specify the tab label
|
||||
* Alternatively, use the default slot (e.g. <Tab><span>Label</span></Tab>)
|
||||
* @type {string} [label=""]
|
||||
*/
|
||||
export let label = "";
|
||||
|
||||
/**
|
||||
* Specify the href attribute
|
||||
* @type {string} [href="#"]
|
||||
*/
|
||||
/** Specify the href attribute */
|
||||
export let href = "#";
|
||||
|
||||
/**
|
||||
* Set to `true` to disable the tab
|
||||
* @type {boolean} [disabled=false]
|
||||
*/
|
||||
/** Set to `true` to disable the tab */
|
||||
export let disabled = false;
|
||||
|
||||
/**
|
||||
* Specify the tabindex
|
||||
* @type {string} [tabindex="0"]
|
||||
*/
|
||||
/** Specify the tabindex */
|
||||
export let tabindex = "0";
|
||||
|
||||
/**
|
||||
* Set an id for the top-level element
|
||||
* @type {string} [id]
|
||||
* @type {string}
|
||||
*/
|
||||
export let id = "ccs-" + Math.random().toString(36);
|
||||
|
||||
/**
|
||||
* Obtain a reference to the anchor HTML element
|
||||
* @type {null | HTMLAnchorElement} [ref=null]
|
||||
* @type {null | HTMLAnchorElement}
|
||||
*/
|
||||
export let ref = null;
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<script>
|
||||
/**
|
||||
* Set an id for the top-level element
|
||||
* @type {string} [id]
|
||||
* @type {string}
|
||||
*/
|
||||
export let id = "ccs-" + Math.random().toString(36);
|
||||
|
||||
|
|
|
@ -1,26 +1,20 @@
|
|||
<script>
|
||||
/**
|
||||
* Specify the selected tab index
|
||||
* @type {number} [selected=0]
|
||||
*/
|
||||
/** Specify the selected tab index */
|
||||
export let selected = 0;
|
||||
|
||||
/**
|
||||
* Specify the type of tabs
|
||||
* @type {"default" | "container"} [type="default"]
|
||||
* @type {"default" | "container"}
|
||||
*/
|
||||
export let type = "default";
|
||||
|
||||
/**
|
||||
* Specify the ARIA label for the chevron icon
|
||||
* @type {string} [iconDescription="Expand/Collapse"]
|
||||
* @type {string}
|
||||
*/
|
||||
export let iconDescription = "Show menu options";
|
||||
|
||||
/**
|
||||
* Specify the tab trigger href attribute
|
||||
* @type {string} [triggerHref="#"]
|
||||
*/
|
||||
/** Specify the tab trigger href attribute */
|
||||
export let triggerHref = "#";
|
||||
|
||||
import { createEventDispatcher, afterUpdate, setContext } from "svelte";
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
<script>
|
||||
/**
|
||||
* Specify the number of tabs to render
|
||||
* @type {number} [count=4]
|
||||
*/
|
||||
/** Specify the number of tabs to render */
|
||||
export let count = 4;
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue