1.0.0 • Published 3 years ago

simple-component-library-modal v1.0.0

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

simple-component-library-modal

A simple library that allows you to set up a modal under react. You can put a title name, a message and also put the message of your button.

Installation and usage

npm install simple-component-library-modal or npm install simple-component-library-modal --force

Then use it in your app:

With React Component

import { useState } from 'react';
import { Modal } from 'simple-component-library-modal'

    // If you want the modal to open, the value of the state setModal must be = a true
    const [modal, setModal] = useState(false);

    return (    
            <>
                {modal === true ? (
                    <Modal openModal={modal} title="You'r title" message="You'r message" btnMessage="you'r button message" closeModal={() => setModal(false)} />
                ): <></>} 
            </>
        )

Props

Common props you may want to specify include:

  • openModal - needs a true value to be open
  • title - Must have a string value
  • message - Must have a string value
  • btnMessage - Must have a string value
  • closeModal - needs a false value to be closed
1.0.0

3 years ago

0.9.28

3 years ago

0.9.27

3 years ago

0.9.26

3 years ago

0.9.25

3 years ago

0.9.24

3 years ago

0.9.23

3 years ago

0.9.22

3 years ago

0.9.21

3 years ago

0.9.20

3 years ago

0.9.19

3 years ago

0.9.18

3 years ago

0.9.17

3 years ago

0.9.16

3 years ago

0.9.15

3 years ago

0.9.14

3 years ago

0.9.13

3 years ago

0.9.12

3 years ago

0.9.11

3 years ago

0.9.10

3 years ago

0.9.9

3 years ago

0.9.8

3 years ago

0.9.7

3 years ago

0.9.6

3 years ago

0.9.5

3 years ago

0.9.4

3 years ago

0.9.3

3 years ago

0.9.2

3 years ago