1.0.44 • Published 2 years ago
react-ui-popup v1.0.44
React UI Popup
What's it?
- Popup menu
- disvisiable when click the close button
Whats it look like?
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
attribute | description | type | PropType | default |
---|---|---|---|---|
title | title of article | string | Lorem Ipsum | |
content | content of article | sting | Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit... | |
href | link of cta | sting | https://www.google.com/ | |
background | responsive image sets of background | object | {dataSets:{}} | |
classPopup | pass your own class to update popup appearance | string | { section: '', article: '', main: '', title: '', content: '' } | |
classCtaEnter | pass your own class to update CTA enter appearance | string | { href: '', svg: '' } | |
classCtaClose | pass your own class to update CTA Close appearance | string | { href: '', svg: '' } | |
theme | what theme they are | string | light, dark | light |
cookieName | what's the name of cookie to store the status of popup | string | popupChecking20210730 | |
startFunc({...props, ...{ isHover: isHover, isVisiable: isVisiable }}) | What it do at the beginning | function | function(){} | |
enterLabel | The content of enter cta | string | enter | |
closeFunc({...props, ...{ isHover: isHover, isVisiable: isVisiable }}) | What it do when close the prop | function | function(){} | |
enterFunc({...props, ...{ isHover: isHover, isVisiable: isVisiable }}) | What it do when click the cta | function | function(){} | |
hoverFunc({...props, ...{ isHover: isHover, isVisiable: isVisiable }}) | What it do when hover the popup | function | function(){} |
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