@cc-test2/alert
v1.0.9
Published
Made with create-react-library
Downloads
3
Readme
alert
Made with create-react-library
Install
npm install --save @cc-test2/alert
Usage
import React, { Component } from 'react'
import Alert from '@cc-test2/alert'
const AlertComponent = () => {
const {isOpen, onOpen, onClose} = useDisclosure();
return (
<>
<Button size='xs' onClick={onOpen}>Open Alert</Button>
<Alert
title='Delete Access'
body="Are you sure? You can't undo this action afterwards."
isOpen={isOpen}
onClose={onClose}
handleAction={()=>alert("Hello")}/>
</>))
}
License
MIT © CodeCraft