1.4.6 • Published 1 year ago

hrnet_component_plugin_modal v1.4.6

Weekly downloads
-
License
-
Repository
github
Last release
1 year ago

Install

Install from terminal npm i hrnet_component_plugin_modal

Usage

For the Modal components open button (for exemple): import ButtonOpenModal from 'ButtonOpenModal'

Exemple

import React from "react"; import { Modal } from "hrnet_component_plugin_modal"; import { useState } from "react"; const ButtonOpenModal = () => { const [modalState, setModalState] = useState(false); function openModal() { setModalState(!modalState); } return ( <div className="header-container"> <button type="button" className="toggleModal nav-link" onClick={openModal} > Click-Me ! </button> <Modal toggle={modalState} action={openModal} /> </div> ); }; export default ButtonOpenModal;

Use Modal

In a React app, use the Modal components in App.js: import Modal from 'hrnet_component_plugin_modal/dist/component/Modal Insert: <Modal />

Close/Image

For the "closing and image" image, import an svg in an images folder in public and rename closeModal.svg and imgModal.svg

Editable project

The editable project can be retrieved from github | Link: Modal plugin

1.4.6

1 year ago

1.4.5

1 year ago

1.4.4

1 year ago

1.4.3

1 year ago

1.4.2

1 year ago

1.4.1

1 year ago

1.4.0

1 year ago

1.3.9

1 year ago

1.3.8

1 year ago

1.3.7

1 year ago

1.3.6

1 year ago

1.3.5

1 year ago

1.3.4

1 year ago

1.3.3

1 year ago

1.3.2

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.9

1 year ago

1.2.8

1 year ago

1.2.7

1 year ago

1.2.6

1 year ago

1.2.4

1 year ago

1.2.3

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago