An open API service indexing awesome lists of open source software.

https://github.com/mountainboooy/mb-react-walkthrough

Simple React component to realize walkthrough UI in your application.
https://github.com/mountainboooy/mb-react-walkthrough

component javascript onboarding react tutorial ui-components walkthrough

Last synced: 8 months ago
JSON representation

Simple React component to realize walkthrough UI in your application.

Awesome Lists containing this project

README

          

# MB React Walkthrough
[![license](https://img.shields.io/github/license/mashape/apistatus.svg)]()
[![npm](https://img.shields.io/npm/dt/mb-react-walkthrough.svg)]()
[![npm](https://img.shields.io/npm/dm/mb-react-walkthrough.svg)]()

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://i.gyazo.com/8451169dc63303bdc655a30363aafe45.gif)](https://gyazo.com/8451169dc63303bdc655a30363aafe45)
[![https://gyazo.com/4adb54887eddf9bd8c51a796da57badc](https://i.gyazo.com/4adb54887eddf9bd8c51a796da57badc.gif)](https://gyazo.com/4adb54887eddf9bd8c51a796da57badc)


## Installation

```
npm install --save mb-react-walkthrough
```


## Import css to your project

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


## Useage

```javascript
import Walkthrough from 'mb-react-walkthrough'

{this.setState({show: false})}}>

PAGE 1


PAGE 2

```


## 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
```