1.0.44 • Published 3 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
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