Skip to content

Simple React component to realize walkthrough UI in your application.

License

Notifications You must be signed in to change notification settings

mountainboooy/mb-react-walkthrough

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MB React Walkthrough

license npm npm

MB React Walkthrough is a simple React component to realize walkthrough UI in your application. With this UI, You can add tutorials, onboardings and short storires very easliy.

https://gyazo.com/8451169dc63303bdc655a30363aafe45 https://gyazo.com/4adb54887eddf9bd8c51a796da57badc


Installation

npm install --save mb-react-walkthrough

Import css to your project

@import './node_modules/mb-react-walkthrough/src/dist/css/mb-react-walkthrough'

Useage

import Walkthrough from 'mb-react-walkthrough'

<Walkthrough onHide={()=>{this.setState({show: false})}}>
    <Walkthrough.Content>
    	PAGE 1
    </Walkthrough.Content>
    <Walkthrough.Content>
    	PAGE 2
    </Walkthrough.Content>
</Walkthrough>

Props

Prop Type Default Note
className string
width number 450
height numbe 360
onHide func Required
onClickBackdrop func
onSlide func
onShow func
nextBtnTitle string Nex
backBtnTitle string Back
closeBtnTitle string Close
animated bool true
animationDuration number 200
showBackdrop bool true
showIndicator bool true
topSpace number 100

Development

git clone git@github.com:mountainboooy/mb-react-walkthrough.git
cd mb-react-walkthrough
npm install
npm run:watch