Sha256: 686091667ca9b69d9b1b348184556fb59b44122d332195266abb3246cdf3ff09

Contents?: true

Size: 1.76 KB

Versions: 1007

Compression:

Stored size: 1.76 KB

Contents

import React, { useState } from 'react'
import { Button, Walkthrough } from 'playbook-ui'

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

1,007 entries across 1,007 versions & 2 rubygems

Version Path
playbook_ui_docs-14.12.0.pre.alpha.play1790darkaudittable5802 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_continuous.jsx
playbook_ui-14.12.0.pre.alpha.play1790darkaudittable5802 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_continuous.jsx
playbook_ui_docs-14.12.0.pre.alpha.play1752updatecontenttag5801 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_continuous.jsx
playbook_ui-14.12.0.pre.alpha.play1752updatecontenttag5801 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_continuous.jsx
playbook_ui_docs-14.13.0.pre.rc.6 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_continuous.jsx
playbook_ui-14.13.0.pre.rc.6 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_continuous.jsx
playbook_ui_docs-14.13.0.pre.rc.5 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_continuous.jsx
playbook_ui-14.13.0.pre.rc.5 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_continuous.jsx
playbook_ui_docs-14.12.0.pre.alpha.PLAY1602lightboxoverlapnitrobug5781 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_continuous.jsx
playbook_ui-14.12.0.pre.alpha.PLAY1602lightboxoverlapnitrobug5781 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_continuous.jsx
playbook_ui_docs-14.13.0.pre.rc.4 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_continuous.jsx
playbook_ui-14.13.0.pre.rc.4 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_continuous.jsx
playbook_ui_docs-14.12.0.pre.alpha.playrailsinputmaskissue5775 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_continuous.jsx
playbook_ui-14.12.0.pre.alpha.playrailsinputmaskissue5775 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_continuous.jsx
playbook_ui_docs-14.12.0.pre.alpha.PBNTR456fixedconftoastrailsautoclose5757 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_continuous.jsx
playbook_ui-14.12.0.pre.alpha.PBNTR456fixedconftoastrailsautoclose5757 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_continuous.jsx
playbook_ui_docs-14.12.0.pre.alpha.PBNTR456fixedconftoastrailsautoclose5754 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_continuous.jsx
playbook_ui-14.12.0.pre.alpha.PBNTR456fixedconftoastrailsautoclose5754 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_continuous.jsx
playbook_ui_docs-14.12.0.pre.alpha.PLAY1602lightboxoverlapnitrobugzindextoken5751 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_continuous.jsx
playbook_ui-14.12.0.pre.alpha.PLAY1602lightboxoverlapnitrobugzindextoken5751 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_continuous.jsx