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

@ -4,8 +4,18 @@
export let placeholder = "hh=mm";
export let pattern = "(1[012]|[1-9]):[0-5][0-9](\\s)?";
export let maxlength = 5;
/**
* Set to `true` to enable the light variant
* @type {boolean} [light=false]
*/
export let light = false;
export let disabled = false;
/**
* Set an id for the input element
* @type {string} [id]
*/
export let id = "ccs-" + Math.random().toString(36);
export let name = undefined;
export let invalid = false;

View file

@ -3,6 +3,11 @@
export let name = undefined;
export let disabled = false;
export let iconDescription = "Open list of options";
/**
* Set an id for the select element
* @type {string} [id]
*/
export let id = "ccs-" + Math.random().toString(36);
export let labelText = "";
export let hideLabel = true;