mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
chore: add more type docs
This commit is contained in:
parent
773b18d314
commit
c3f924c25a
45 changed files with 517 additions and 50 deletions
|
@ -14,7 +14,19 @@
|
|||
*/
|
||||
export let light = false;
|
||||
export let disabled = false;
|
||||
|
||||
/**
|
||||
* Set to `true` to indicate an invalid state
|
||||
* @type {boolean} [invalid=false]
|
||||
*/
|
||||
export let invalid = false;
|
||||
|
||||
/**
|
||||
* Specify the invalid state text
|
||||
* @type {string} [invalidText=""]
|
||||
*/
|
||||
export let invalidText = "";
|
||||
|
||||
export let items = [];
|
||||
export let itemToString = (item) => item.text || item.id;
|
||||
export let type = "default"; // "default" | "inline"
|
||||
|
@ -26,7 +38,7 @@
|
|||
*/
|
||||
export let id = "ccs-" + Math.random().toString(36);
|
||||
export let name = undefined;
|
||||
export let invalidText = "";
|
||||
|
||||
export let helperText = "";
|
||||
export let label = undefined;
|
||||
export let titleText = "";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue