1.0.0 • Published 4 years ago
simple-component-library-modal v1.0.0
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 opentitle- Must have a string valuemessage- Must have a string valuebtnMessage- Must have a string valuecloseModal- needs a false value to be closed
1.0.0
4 years ago
0.9.28
4 years ago
0.9.27
4 years ago
0.9.26
4 years ago
0.9.25
4 years ago
0.9.24
4 years ago
0.9.23
4 years ago
0.9.22
4 years ago
0.9.21
4 years ago
0.9.20
4 years ago
0.9.19
4 years ago
0.9.18
4 years ago
0.9.17
4 years ago
0.9.16
4 years ago
0.9.15
4 years ago
0.9.14
4 years ago
0.9.13
4 years ago
0.9.12
4 years ago
0.9.11
4 years ago
0.9.10
4 years ago
0.9.9
4 years ago
0.9.8
4 years ago
0.9.7
4 years ago
0.9.6
4 years ago
0.9.5
4 years ago
0.9.4
4 years ago
0.9.3
4 years ago
0.9.2
4 years ago