Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Latest commit

 

History

History
38 lines (28 loc) · 726 Bytes

confirm_button.md

File metadata and controls

38 lines (28 loc) · 726 Bytes

Buttons/ConfirmButton

Button with click confirmation.

ConfirmButton example

<div>
    <ConfirmButton message="Are you sure?">Delete</ConfirmButton>
</div>

Props

message={string}
The confirmation message.

disabled={bool}
Whether or not the button is disabled or not.

CSS

Adds dp-button to the root element.

Examples

import React from 'react';
import ReactDOM from 'react-dom';
import { ConfirmButton } from 'Components/Buttons';

const App = () => (
    <div>
        <ConfirmButton message="Are you sure?">Delete</ConfirmButton>
    </div>
);

ReactDOM.render(<App />, document.getElementById('mount'));