0.0.19 • Published 3 years ago

@test-lerna-1/alert v0.0.19

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

alert

Made with create-react-library

NPM JavaScript Style Guide

Install

npm install --save @test-lerna-1/alert

Usage

import React, { Component } from 'react'

import Alert from '@test-lerna-1/alert'

const AlertComponent = () => {
    const {isOpen, onOpen, onClose} = useDisclosure();
    return (
         <Fragment>
            <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")}/>
         </Fragment>))
}

License

MIT © CodeCraft

0.0.17

3 years ago

0.0.18

3 years ago

0.0.19

3 years ago

0.0.16

3 years ago

0.0.14

3 years ago

0.0.13

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago