4.1.0 • Published 2 years ago

@augustindev/modal v4.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

@augustindev/modal

Composant Modal create with React.

Installation and usage

install package npm.

yarn add @augustindev/modal

Then use it in your app :

With React Component

import React, { useState } from 'react'
import { Modal } from "@augustindev/modal/dist"

export default function App() {

    const [stateModal, setStateModal] = useState(false)

    return (
        <Modal content='Text modale' show={stateModal} onClose={() => setStateModal(false)} />
    )
}

Props

  • content - Text show in Modal
  • show - State Modal (Show/Hide).
  • onClose - Callback function when user click on close button.
4.1.0

2 years ago

4.0.0

2 years ago

3.1.1

2 years ago

3.1.0

2 years ago

3.0.0

2 years ago

2.2.0

2 years ago

2.1.0

2 years ago

2.0.0

2 years ago

1.0.0

2 years ago

0.1.0

2 years ago