New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

custom-modal-web-component

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

custom-modal-web-component

Bachelor thesis project

  • 1.0.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Custom modal

Bachelor thesis project.

Technology

Project created based on Web Components

  • HTML
  • CSS
  • JavaScript
  • Webpack

NPM package

Link to package

Usage in project

Install the package from NPM

$ npm i custom-modal-web-component

Use as a tag in your project

<custom-modal title='My modal'>
    <div slot='content'>Modal content as a slot</div>
</custom-modal>

Parameters

NameTypeDescriptionMandatoryDefault
titleStringAvailable values allYes-
openBooleanModal visible if value trueNofalse
buttonStringText for button in modal footer, if no button attribute - button invisibleNoSend
sizeStringAvailable values m / l / xlNom

Available events

btn-click - event triggered when footer button clicked.

close - event triggered when closed the modal (X button clicked).

Development

Install the dependencies and devDependencies and start the server.

$ npm install

Build the development version.

$ npm run dev

Build the production version.

$ npm run build

Run webpack server and watch the changes.

$ npm run serve

Keywords

FAQs

Package last updated on 18 Jan 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