ConfirmButton

This is a confirm button component.

Installation

import { ConfirmButton } from 'uxp/components';

Signature

const ConfirmButton: React.FunctionComponent<IConfirmButtonProps>

Examples

<ConfirmButton
     title="Delete Item"
     loading={buttonLoading}
     onConfirm={async () => {return executeAction("model", "action", {})}}
     onCancel={() => {alert("Canceled")}}
 />

Properties

Name
Type
Mandatory
Default Value
Example Value

title

string

Yes

-

-

icon

string

No

-

-

className

string

No

-

-

onConfirm

() => Promise

Yes

-

-

onCancel

() => void

Yes

-

-

loading

boolean

No

-

-

loadingTitle

string

No

-

-

active

boolean

No

-

-

disabled

boolean

No

-

-

Last updated