mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
feat(modal): support primaryButtonIcon prop (#1047)
This commit is contained in:
parent
f53b5472e5
commit
a8039a4d1e
8 changed files with 96 additions and 31 deletions
|
@ -6,6 +6,12 @@
|
|||
/** Specify the primary button text */
|
||||
export let primaryButtonText = "";
|
||||
|
||||
/**
|
||||
* Specify the primary button icon
|
||||
* @type {typeof import("svelte").SvelteComponent}
|
||||
*/
|
||||
export let primaryButtonIcon = undefined;
|
||||
|
||||
/** Set to `true` to disable the primary button */
|
||||
export let primaryButtonDisabled = false;
|
||||
|
||||
|
@ -74,6 +80,7 @@
|
|||
kind="{danger ? 'danger' : 'primary'}"
|
||||
disabled="{primaryButtonDisabled}"
|
||||
class="{primaryClass}"
|
||||
icon="{primaryButtonIcon}"
|
||||
on:click="{submit}"
|
||||
>
|
||||
{primaryButtonText}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue