@cc-test2/alert

1.0.9 • Public • Published

alert

Made with create-react-library

NPM JavaScript Style Guide

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

Readme

Keywords

none

Package Sidebar

Install

npm i @cc-test2/alert

Weekly Downloads

2

Version

1.0.9

License

MIT

Unpacked Size

229 kB

Total Files

7

Last publish

Collaborators

  • lordapollo