Skip to content

Commit

Permalink
feat(confirmation-modal): add disabled prop (#1831)
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusps authored Aug 16, 2024
2 parents ea6670d + ed1ee65 commit f021697
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export const ConfirmationModal = forwardRef<
onCancel,
locale = 'en-US',
messages,
disabled = false,
...otherProps
} = props

Expand Down Expand Up @@ -83,6 +84,7 @@ export const ConfirmationModal = forwardRef<
size="large"
variant="primary"
aria-label={confirm}
disabled={disabled}
>
{confirm}
</Button>
Expand All @@ -109,6 +111,11 @@ export interface ConfirmationModalOptions {
* @default false
*/
open?: boolean
/**
* Whether the confirm actions is disabled.
* @default false
*/
disabled?: boolean
/**
* The BCP47 language code for the locale.
* @link https://www.ietf.org/rfc/bcp/bcp47.txt
Expand Down

0 comments on commit f021697

Please sign in to comment.