mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-22 05:03:44 +00:00
Allow modals to have button icons
This commit is contained in:
parent
f53b5472e5
commit
a46cd55d15
8 changed files with 67 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue