File size: 809 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# ConfirmDialog Component
The ConfirmDialog component is a reusable component that provides a confirmation dialog with customizable buttons and text.
## Usage
The ConfirmDialog package provides a set of components that can be used to compose the core component or be extended to support different kind of contents, instead of just text.
## Example usage
```jsx
<ConfirmDialog
onRequestClose={ this.closeAndCleanup }
title="Some title"
>
<DialogContent>
<p>
Some Content
</p>
</DialogContent>
<DialogFooter>
<Button onClick={ this.onClickAtomicFollowUpConfirm } variant="tertiary">
{ translate( 'Turn off auto-renew' ) }
</Button>
<Button href={ exportPath } variant="primary">
{ translate( 'Download content' ) }
</Button>
</DialogFooter>
</ConfirmDialog>
```
|