1.0.0 • Published 2 years ago

simple-component-library-modal v1.0.0

Weekly downloads
-
License
-
Repository
-
Last release
2 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

2 years ago

0.9.28

2 years ago

0.9.27

2 years ago

0.9.26

2 years ago

0.9.25

2 years ago

0.9.24

2 years ago

0.9.23

2 years ago

0.9.22

2 years ago

0.9.21

2 years ago

0.9.20

2 years ago

0.9.19

2 years ago

0.9.18

2 years ago

0.9.17

2 years ago

0.9.16

2 years ago

0.9.15

2 years ago

0.9.14

2 years ago

0.9.13

2 years ago

0.9.12

2 years ago

0.9.11

2 years ago

0.9.10

2 years ago

0.9.9

2 years ago

0.9.8

2 years ago

0.9.7

2 years ago

0.9.6

2 years ago

0.9.5

2 years ago

0.9.4

2 years ago

0.9.3

2 years ago

0.9.2

2 years ago