mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 10:51:06 +00:00
chore: add more prop annotations
This commit is contained in:
parent
8c1ffd4cb0
commit
773b18d314
75 changed files with 877 additions and 137 deletions
|
@ -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";
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue