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

@gip-recia/info-modal

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gip-recia/info-modal

Info modal web component for GIP-Recia

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
12
decreased by-73.91%
Maintainers
0
Weekly downloads
 
Created
Source

Info-Modal

Info-Modal est un webcomponent s'appuyant sur la librairie Lit pour afficher une modale d'information.

  • Info-Modal

Installation

  1. Installation via npm :
npm install @gip-recia/info-modal
  1. Importation du composant :

Dans un module JavaScript :

import '@gip-recia/info-modal';

Dans une page HTML :

<script src="./path/to/info-modal.min.js"></script>
  1. Ajout du component sur une page HTML :
const infoModal = document.createElement('info-modal');
document.body.appendChild(infoModal);

Paramètres

Propriétés disponibles :

NomTypeObligatoireDescription
titleModalstringnonLe titre de la modale
debugbooleannonUn booléen qui permet d'afficher les retour console ou non
mainElementHTMLElementouiBalise main du DOM (la modale gère la navigation clavier dans le DOM)

<info-modal
  titleModal=""
  debug
/>

Variables CSS

Modification de style

Plusieurs variables CSS peuvent être définis pour personnaliser le webcomponent :

NomDescription
--info-modal-background-modal-container-colorCouleur de fond de la modale
--info-modal-background-modal-overlay-colorCouleur d'arrière plan (donne le "focus visuel" à la modale)

Keywords

FAQs

Package last updated on 20 Feb 2025

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