0.0.2 • Published 2 years ago

@alexandre_m/react-modal v0.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

React Custom Modal

Downloads

A simple and reusable Modal component for REACT

npm.io npm.io

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

npm.io

Here is the plugin code

npm.io

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.