mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +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
types/ComposedModal/ModalFooter.svelte.d.ts
vendored
6
types/ComposedModal/ModalFooter.svelte.d.ts
vendored
|
@ -9,6 +9,12 @@ export interface ModalFooterProps
|
|||
*/
|
||||
primaryButtonText?: string;
|
||||
|
||||
/**
|
||||
* Specify the primary button icon
|
||||
* @default undefined
|
||||
*/
|
||||
primaryButtonIcon?: typeof import("svelte").SvelteComponent;
|
||||
|
||||
/**
|
||||
* Set to `true` to disable the primary button
|
||||
* @default false
|
||||
|
|
6
types/Modal/Modal.svelte.d.ts
vendored
6
types/Modal/Modal.svelte.d.ts
vendored
|
@ -81,6 +81,12 @@ export interface ModalProps
|
|||
*/
|
||||
primaryButtonDisabled?: boolean;
|
||||
|
||||
/**
|
||||
* Specify the primary button icon
|
||||
* @default undefined
|
||||
*/
|
||||
primaryButtonIcon?: typeof import("svelte").SvelteComponent;
|
||||
|
||||
/**
|
||||
* Set to `true` for the "submit" and "click:button--primary" events
|
||||
* to be dispatched when pressing "Enter"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue