chore: add more prop annotations

This commit is contained in:
Eric Liu 2020-07-25 06:26:49 -07:00
commit 773b18d314
75 changed files with 877 additions and 137 deletions

View file

@ -1,5 +1,14 @@
<script>
/**
* Specify the number of accordion items to render
* @type {number} [count=4]
*/
export let count = 4;
/**
* Set to `false` to close the first accordion item
* @type {boolean} [open=true]
*/
export let open = true;
import ChevronRight16 from "carbon-icons-svelte/lib/ChevronRight16";

View file

@ -6,7 +6,7 @@
export let align = "end";
/**
* Set to `true` to display skeleton state
* Set to `true` to display the skeleton state
* @type {boolean} [skeleton=false]
*/
export let skeleton = false;

View file

@ -1,7 +1,7 @@
<script>
/**
* Specify title of accordion item heading
* Alternatively use the named slot "title"
* Specify the title of the accordion item heading
* Alternatively, use the named slot "title" (e.g. <div slot="title">...</div>)
* @type {string} [title="title"]
*/
export let title = "title";
@ -13,7 +13,7 @@
export let open = false;
/**
* Define the ARIA label for accordion item chevron icon
* Define the ARIA label for the accordion item chevron icon
* @type {string} [iconDescription="Expand/Collapse"]
*/
export let iconDescription = "Expand/Collapse";