Socket
Socket
Sign inDemoInstall

mdtemp-modal

Package Overview
Dependencies
6
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    mdtemp-modal

Md-modal is a simplest way to create dialog on your site.


Version published
Maintainers
1
Created

Readme

Source

md-modal npm package Build Status

Md-modal is a simplest way to create dialog on your site.

  • Very small (less than 4Kb)
  • Mobile friendly
  • Without dependencies

Getting Started

Install this package:

npm i md-modal

Import the Counter component:

import {Modal} from 'md-modal';

const modalRef = useRef<ModalRef>(null)

const showModal = useCallback<SubmitHandler>(() => modalRef.current?.open(), [])

 <Modal ref={modalRef}>Your content</Modal>

You can then render the Counter component like any other React component in JSX.

<button className="button" onClick={showModal}>Open modal</button>

Keywords

FAQs

Last updated on 02 Mar 2023

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