chore: add more type docs

This commit is contained in:
Eric Liu 2020-07-25 11:30:45 -07:00
commit c3f924c25a
45 changed files with 517 additions and 50 deletions

View file

@ -1,7 +1,26 @@
<script>
/**
* Specify the number of lines to render
* @type {number} [lines=3]
*/
export let lines = 3;
/**
* Set to `true` to use the heading size variant
* @type {boolean} [heading=false]
*/
export let heading = false;
/**
* Set to `true` to use the paragraph size variant
* @type {boolean} [paragraph=false]
*/
export let paragraph = false;
/**
* Specify the width of the text (% or px)
* @type {string} [width="100%"]
*/
export let width = "100%";
const randoms = [0.973, 0.153, 0.567];