React Custom Modal
A simple and reusable Modal component for REACT
Installation
The package can be installed via npm:
npm install @alexandre_m/custom-modal --save
Or via yarn:
yarn add @alexandre_m/custom-modal
dependencies:
styled-components: ^5.3.5
devDependencies
@types/react: ^17.0.14,
@types/styled-components: ^5.1.26,
css-loader: 6.7.1,
react-dom: ^17.0.2,
style-loader: 3.3.1,
typescript: ^4.3.5
Configuration
You can call the modal as a usual component
Here is the plugin code
Type of props:
Interface Props {
text: string;
id: string;
success: Boolean;
icon: string
}
Style:
To change the style in a simple way use the "SCSS"
with nesting from the id you choose.
License
Copyright (c) 2022 Lych Inc. and individual contributors. Licensed under ISC license, see LICENSE for the full license.