Socket
Socket
Sign inDemoInstall

window-modal

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    window-modal

A mini window in your browser that can move, resize, minimize, and more!


Version published
Weekly downloads
10
decreased by-69.7%
Maintainers
1
Install size
32.4 kB
Created
Weekly downloads
 

Readme

Source

window-modal Build Status npm version

A modal window element designed to be smooth, clean and user friendly.
Includes many features and options!
Demo

Feature and improvement suggestions welcome!
Looking for a React Wrapper?

Features

  • Pure JS (Written in TypeScript)
  • Designed to be used in vanilla JS, or wrapped by front end frameworks (React, Vue, etc)
  • Highly tested
  • Movable
  • Resizable
  • Titles (with icons)
  • Minimize
  • Close
  • Scrollable
  • Customizable style (override styles with classnames, may have to use !important)
  • Many options!

Setup

CDN
<script src="https://cdn.jsdelivr.net/npm/window-modal/build/index.js"/>

npm

npm install window-modal

then

const WindowModal = require("window-modal");

or

import WindowModal from "window-modal";

Usage

const options = { option: value };
new WindowModal(options);

Keywords

FAQs

Last updated on 29 Sep 2019

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