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

@ -2,13 +2,28 @@
export let autocomplete = "off";
export let autofocus = false;
export let closeButtonLabelText = "Clear search input";
/**
* Set an id for the input element
* @type {string} [id]
*/
export let id = "ccs-" + Math.random().toString(36);
export let type = "text";
export let value = "";
export let labelText = "";
export let placeholder = "Search...";
export let skeleton = false;
/**
* Set to `true` to enable the light variant
* @type {boolean} [light=false]
*/
export let light = false;
/**
* Set to `true` to use the small variant
* @type {boolean} [small=false]
*/
export let small = false;
export let size = small ? "sm" : "xl";
export let ref = null;