Allow modals to have button icons

This commit is contained in:
Gregor Wassmann 2022-01-29 00:04:39 +01:00
commit a46cd55d15
8 changed files with 67 additions and 0 deletions

View file

@ -55,6 +55,12 @@
/** Set to `true` to disable the primary button */
export let primaryButtonDisabled = false;
/**
* Specify the primary button props
* @type {ButtonProps}
*/
export let primaryButtonProps = {};
/**
* Set to `true` for the "submit" and "click:button--primary" events
* to be dispatched when pressing "Enter"
@ -304,6 +310,7 @@
dispatch('submit');
dispatch('click:button--primary');
}}"
{...primaryButtonProps}
>
{primaryButtonText}
</Button>