Sha256: df7966436551c60b09a6fcf6b912f5244387ab2129245f87d59c020db1b06f55
Contents?: true
Size: 1.75 KB
Versions: 963
Compression:
Stored size: 1.75 KB
Contents
import React, { useState } from 'react' import { Button, Walkthrough } from '../../' const WalkthroughContinuous = (props) => { const [state, setState] = useState({ run: false, steps: [ { title: 'Example Title', content: 'Setting the prop - continuous allows the next button to appear and lets the user move to the next step by pressing the next button instead of the beacon', target: '.examplePaused', }, { title: 'Toggle', content: 'Setting the prop - continuous allows the next button to appear and lets the user move to the next step by pressing the next button instead of the beacon', target: '.pb_toggle_control', }, { title: 'Top Nav', content: 'Setting the prop - continuous allows the next button to appear and lets the user move to the next step by pressing the next button instead of the beacon', target: '.pb--page--topNav', }, ], }) return ( <div> <div className="examplePaused" style={{ 'display': 'inline' }} > {'Start the Tour. Then click the Beacon to demo the default behavior of the Walkthrough Kit'} </div> <br /> <br /> <Button onClick={() => { setState({ ...state, run: true, }) }} > {'Start Tour'} </Button> <br /> <br /> <Button onClick={() => { setState({ ...state, run: false, }) }} > {'Reset/Stop Tour'} </Button> <Walkthrough run={state.run} steps={state.steps} {...props} continuous /> </div> ) } export default WalkthroughContinuous
Version data entries
963 entries across 963 versions & 2 rubygems