mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 10:51: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,32 +1,23 @@
|
|||
<script>
|
||||
/**
|
||||
* Set to `true` to toggle the expanded state
|
||||
* @type {boolean} [expanded=false]
|
||||
*/
|
||||
/** Set to `true` to toggle the expanded state */
|
||||
export let expanded = false;
|
||||
|
||||
/**
|
||||
* Specify the `href` attribute
|
||||
* @type {string} [href="/"]
|
||||
*/
|
||||
/** Specify the `href` attribute */
|
||||
export let href = "/";
|
||||
|
||||
/**
|
||||
* Specify the text
|
||||
* @type {string} [text]
|
||||
* @type {string}
|
||||
*/
|
||||
export let text = undefined;
|
||||
|
||||
/**
|
||||
* Obtain a reference to the HTML anchor element
|
||||
* @type {null | HTMLAnchorElement} [ref=null]
|
||||
* @type {null | HTMLAnchorElement}
|
||||
*/
|
||||
export let ref = null;
|
||||
|
||||
/**
|
||||
* Specify the ARIA label for the chevron icon
|
||||
* @type {string} [iconDescription="Expand/Collapse"]
|
||||
*/
|
||||
/** Specify the ARIA label for the chevron icon */
|
||||
export let iconDescription = "Expand/Collapse";
|
||||
|
||||
import ChevronDown16 from "carbon-icons-svelte/lib/ChevronDown16";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue