mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 19:01: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
|
@ -1,44 +1,33 @@
|
|||
<script>
|
||||
/**
|
||||
* @event {string} delete
|
||||
*/
|
||||
|
||||
/**
|
||||
* Specify the file uploader status
|
||||
* @type {"uploading" | "edit" | "complete"} [status="uploading"]
|
||||
* @type {"uploading" | "edit" | "complete"}
|
||||
*/
|
||||
export let status = "uploading";
|
||||
|
||||
/**
|
||||
* Specify the ARIA label used for the status icons
|
||||
* @type {string} [iconDescription=""]
|
||||
*/
|
||||
/** Specify the ARIA label used for the status icons */
|
||||
export let iconDescription = "";
|
||||
|
||||
/**
|
||||
* Set to `true` to indicate an invalid state
|
||||
* @type {boolean} [invalid=false]
|
||||
*/
|
||||
/** Set to `true` to indicate an invalid state */
|
||||
export let invalid = false;
|
||||
|
||||
/**
|
||||
* Specify the error subject text
|
||||
* @type {string} [errorSubject=""]
|
||||
*/
|
||||
/** Specify the error subject text */
|
||||
export let errorSubject = "";
|
||||
|
||||
/**
|
||||
* Specify the error body text
|
||||
* @type {string} [errorBody=""]
|
||||
*/
|
||||
/** Specify the error body text */
|
||||
export let errorBody = "";
|
||||
|
||||
/**
|
||||
* Set an id for the top-level element
|
||||
* @type {string} [id]
|
||||
* @type {string}
|
||||
*/
|
||||
export let id = "ccs-" + Math.random().toString(36);
|
||||
|
||||
/**
|
||||
* Specify the file uploader name
|
||||
* @type {string} [name=""]
|
||||
*/
|
||||
/** Specify the file uploader name */
|
||||
export let name = "";
|
||||
|
||||
import { createEventDispatcher } from "svelte";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue