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,42 +0,0 @@
|
|||
<script>
|
||||
/**
|
||||
* Set to `true` to use the vertical variant
|
||||
* @type {boolean} [vertical=false]
|
||||
*/
|
||||
export let vertical = false;
|
||||
|
||||
/**
|
||||
* Specify the number of steps to render
|
||||
* @type {number} [count=4]
|
||||
*/
|
||||
export let count = 4;
|
||||
</script>
|
||||
|
||||
<ul
|
||||
class:bx--progress="{true}"
|
||||
class:bx--progress--vertical="{vertical}"
|
||||
class:bx--skeleton="{true}"
|
||||
{...$$restProps}
|
||||
on:click
|
||||
on:mouseover
|
||||
on:mouseenter
|
||||
on:mouseleave
|
||||
>
|
||||
{#each Array.from({ length: count }, (_, i) => i) as item, i (item)}
|
||||
<li
|
||||
class:bx--progress-step="{true}"
|
||||
class:bx--progress-step--incomplete="{true}"
|
||||
>
|
||||
<div
|
||||
class:bx--progress-step-button="{true}"
|
||||
class:bx--progress-step-button--unclickable="{true}"
|
||||
>
|
||||
<svg>
|
||||
<path d="M 7, 7 m -7, 0 a 7,7 0 1,0 14,0 a 7,7 0 1,0 -14,0"></path>
|
||||
</svg>
|
||||
<p class:bx--progress-label="{true}"></p>
|
||||
<span class:bx--progress-line="{true}"></span>
|
||||
</div>
|
||||
</li>
|
||||
{/each}
|
||||
</ul>
|
Loading…
Add table
Add a link
Reference in a new issue