component Button { outputs { click(payload: { sourceEvent?: Event; [key: string]: string | number | boolean | null | object }) focus(payload: { sourceEvent?: Event; [key: string]: string | number | boolean | null | object }) blur(payload: { sourceEvent?: Event; [key: string]: string | number | boolean | null | object }) } props { label: string = "Button" loadingLabel: string = "Loading…" description: string = "" as: string = "" href: string = "" target: string = "" rel: string = "" type: string = "button" variant: string = "default" color: string = "primary" size: string = "default" disabled: boolean = false loading: boolean = false pill: boolean = false fullWidth: boolean = false icon: string = "" iconPosition: string = "start" ariaLabel: string = "" ariaPressed: string = "" ariaExpanded: string = "" ariaControls: string = "" title: string = "" autofocus: boolean = false controlClass: string = "" class: string = "" } view { {#if as === "a" || (as === "" && href)} {#if loading} {/if} {#if icon && !loading && iconPosition === "start"} {/if} {loading ? loadingLabel : label} {#if description && !loading} {description} {/if} {#if icon && !loading && iconPosition === "end"} {/if} {#if (size === "icon" || size === "icon-xs" || size === "icon-sm" || size === "icon-lg") && (ariaLabel || label)} {/if} {:else} {/if} } }