1.0.44 • Published 3 years ago

react-ui-popup v1.0.44

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

React UI Popup

What's it?

  1. Popup menu
  2. disvisiable when click the close button

Whats it look like?

mb dt

install

npm install --save-dev react-ui-popup

import

import PopupMenu from 'react-ui-popup';
<PopupMenu {...{
    title: 'Lorem Ipsum',
    content: 'Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...',
    theme: 'dark',
    background: {
        dataSets: {
            0: {
                src: 'https://staging-ap01-itapparels.demandware.net/on/demandware.static/-/Sites-IT-HK-Library/default/dwe2d7ce88/landingPageCreative/2022/1/w2/HK_BIT_MiniPopUp_DT_SnowPeak_ForkSet_GWP_Mockup_Bkg_v3.jpg', width: 295, height: 188
            }
        },
        alt: 'test'
    },
    ctaEnter: {
        content: 'Register Now'
    },
    href: "https://www.google.com/",
    startFunc, closeFunc, enterFunc, hoverFunc,
    customClass:{
        container, 
        background,
        desc,
        title,
        content,
        ctaEnter,
        ctaClose
    }
}}/>

Props

attributedescriptiontypePropTypedefault
titletitle of articlestringLorem Ipsum
contentcontent of articlestingNeque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...
hreflink of ctastinghttps://www.google.com/
backgroundresponsive image sets of backgroundobject{dataSets:{}}
classPopuppass your own class to update popup appearancestring{ section: '', article: '', main: '', title: '', content: '' }
classCtaEnterpass your own class to update CTA enter appearancestring{ href: '', svg: '' }
classCtaClosepass your own class to update CTA Close appearancestring{ href: '', svg: '' }
themewhat theme they arestringlight, darklight
cookieNamewhat's the name of cookie to store the status of popupstringpopupChecking20210730
startFunc({...props, ...{ isHover: isHover, isVisiable: isVisiable }})What it do at the beginningfunctionfunction(){}
enterLabelThe content of enter ctastringenter
closeFunc({...props, ...{ isHover: isHover, isVisiable: isVisiable }})What it do when close the propfunctionfunction(){}
enterFunc({...props, ...{ isHover: isHover, isVisiable: isVisiable }})What it do when click the ctafunctionfunction(){}
hoverFunc({...props, ...{ isHover: isHover, isVisiable: isVisiable }})What it do when hover the popupfunctionfunction(){}
1.0.39

3 years ago

1.0.38

3 years ago

1.0.40

3 years ago

1.0.44

3 years ago

1.0.43

3 years ago

1.0.42

3 years ago

1.0.41

3 years ago

1.0.37

3 years ago

1.0.19

3 years ago

1.0.18

3 years ago

1.0.17

4 years ago

1.0.22

3 years ago

1.0.21

3 years ago

1.0.20

3 years ago

1.0.26

3 years ago

1.0.25

3 years ago

1.0.24

3 years ago

1.0.23

3 years ago

1.0.29

3 years ago

1.0.28

3 years ago

1.0.27

3 years ago

1.0.33

3 years ago

1.0.32

3 years ago

1.0.31

3 years ago

1.0.30

3 years ago

1.0.36

3 years ago

1.0.35

3 years ago

1.0.34

3 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago