Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@acodez/modal

Package Overview
Dependencies
Maintainers
4
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@acodez/modal

react modal component

  • 1.1.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
4
Weekly downloads
 
Created
Source

@acodez/modal

npm_version license

React modal component.


  • Installation
  • PropsAPI
  • Usage

Installation

npm install @acodez/modal

Props API

PropertyTypeRequiredDescription
actionBtnTextstringnoAction button text, default - show modal
cancelBtnTextstringnoCancel button text, default - Cancel
saveBtnTextstringnoSave button text, button will be hidden if no value entered
saveBtnFunctionstringnosave button function
showCloseBtnstringnoshow close button on modal or not
disableBgClosestringnoif you want to limit closing of modal to button click

Usage

import Modal from "@acodez/modal";

Basic

    <Modal>
        <p>
            Modal content here.
        </p>
    </Modal>

Advanced

    <Modal disableBgClose showCloseBtn saveBtnFunction={saveFunction} actionBtnText="open modal" saveBtnText="Save" cancelBtnText="Cancel" modalHeading="This is modal heading">
        <p>
            To close this modal, press the cancel button below or use the Escape key on desktop.
        </p>
    </Modal>

Keywords

FAQs

Package last updated on 06 Feb 2021

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc