mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
chore: add more prop annotations
This commit is contained in:
parent
8c1ffd4cb0
commit
773b18d314
75 changed files with 877 additions and 137 deletions
|
@ -1,7 +1,22 @@
|
|||
<script>
|
||||
export let size = undefined; // "sm" | "xl"
|
||||
export let type = "default"; // "default" | "inline"
|
||||
/**
|
||||
* Set the size of list box
|
||||
* @type {"sm" | "xl"} [size]
|
||||
*/
|
||||
export let size = undefined;
|
||||
|
||||
/**
|
||||
* Set the type of list box
|
||||
* @type {"default" | "inline"} [type="default"]
|
||||
*/
|
||||
export let type = "default";
|
||||
|
||||
export let open = false;
|
||||
|
||||
/**
|
||||
* Set to `true` to enable the light variant
|
||||
* @type {boolean} [light=false]
|
||||
*/
|
||||
export let light = false;
|
||||
export let disabled = false;
|
||||
export let invalid = false;
|
||||
|
@ -21,7 +36,7 @@
|
|||
class="{size && `bx--list-box--${size}`}
|
||||
{$$restProps.class}"
|
||||
on:keydown
|
||||
on:keydown={e => {
|
||||
on:keydown={(e) => {
|
||||
if (e.key === 'Escape') {
|
||||
e.stopPropagation();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue