chore: complete first pass of apply jsdoc annotations to component props

This commit is contained in:
Eric Liu 2020-07-26 17:42:12 -07:00
commit f30755b237
97 changed files with 2327 additions and 259 deletions

View file

@ -1,6 +1,20 @@
<script>
/**
* Set to `true` to check the input
* @type {boolean} [checked=false]
*/
export let checked = false;
/**
* Specify the title of the input
* @type {string} [title="title"]
*/
export let title = "title";
/**
* Specify the value of the input
* @type {string} [value="value"]
*/
export let value = "value";
/**
@ -8,7 +22,17 @@
* @type {string} [id]
*/
export let id = "ccs-" + Math.random().toString(36);
/**
* Specify a name attribute for the input
* @type {string} [name=""]
*/
export let name = "";
/**
* Obtain a reference to the input HTML element
* @type {null | HTMLInputElement} [ref=null]
*/
export let ref = null;
import { getContext } from "svelte";