Socket
Socket
Sign inDemoInstall

modal-stv-library

Package Overview
Dependencies
4
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    modal-stv-library

Modal Reusable React components


Version published
Maintainers
1
Created

Readme

Source

Modal-library

This is a modal library that you can use with an simple import directly with npm.

If you need, you can custom the background, the container of the modal and the text.

1. How to use it

To use it, it's simple, follow just the instructions below

1.1 Install the library on the root of your Project

npm install --save modal-stv-library

1.2 Import the modal

import Modal from "./modal-stv-library";

1.3 Then use the component

<Modal name="Your Text" />

1.4 Add style to the component as you want

This is an exemple if you need to change the style.

Copy this template and put your properties in Styles.

background => To change the position of the modal container, the color of the background, the opacity... containerModal => To change the size, border... of the modal container. text => to change the size, color of the text...

const styles = { background: { justifyContent: "right", Position of the modal window backgroundColor: "red", opacity: "0.7", }, containerModal: { width: "200px", height: "70px", border: "2px solid orange", }, text: { color: "red", fontSize: "20px", }, };

Enjoy !

Keywords

FAQs

Last updated on 23 Dec 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc