1.0.44 • Published 2 years ago

react-ui-popup v1.0.44

Weekly downloads
-
License
MIT
Repository
-
Last release
2 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

2 years ago

1.0.38

2 years ago

1.0.40

2 years ago

1.0.44

2 years ago

1.0.43

2 years ago

1.0.42

2 years ago

1.0.41

2 years ago

1.0.37

2 years ago

1.0.19

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.22

2 years ago

1.0.21

2 years ago

1.0.20

2 years ago

1.0.26

2 years ago

1.0.25

2 years ago

1.0.24

2 years ago

1.0.23

2 years ago

1.0.29

2 years ago

1.0.28

2 years ago

1.0.27

2 years ago

1.0.33

2 years ago

1.0.32

2 years ago

1.0.31

2 years ago

1.0.30

2 years ago

1.0.36

2 years ago

1.0.35

2 years ago

1.0.34

2 years ago

1.0.16

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago