1.0.0 • Published 2 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
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