Skip to content

ahoseinian/react-confirm-btn

Repository files navigation

React Confirm Button

Simple react component that handles confirmation before running an action

Installation

npm install react-confirm-btn --save
// or
yarn add react-confirm-btn

Example

import ConfirmBtn from 'react-confirm-btn'

...
<ConfirmBtn onConfirm="..." > Delete </ConfirmBtn>

Props


{
    onConfirm: () => void,
    confirmText?: string,
    time?: number,
    style?: {},
    ...
}

Demo

Check out the Demo generated using storybook

About

Simple react component that handles confirmation onClick

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published