mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-21 20:59:20 +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
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 props
|
||||
* @default {}
|
||||
*/
|
||||
primaryButtonProps?: ButtonProps;
|
||||
|
||||
/**
|
||||
* 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 props
|
||||
* @default {}
|
||||
*/
|
||||
primaryButtonProps?: ButtonProps;
|
||||
|
||||
/**
|
||||
* 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