Sha256: 70b9b61593993ed9ea7fe2ba72cdb63fcefd526bcea8060c0bdad08816302b27

Contents?: true

Size: 1.65 KB

Versions: 963

Compression:

Stored size: 1.65 KB

Contents

import React, { useState } from 'react'
import { Button, Walkthrough } from '../../'

const WalkthroughStyled = (props) => {
  const [state, setState] = useState({
    run: false,
    steps: [
      {
        title: 'Example title',
        content:
      'This was an example of a Beacon in the Walkthrough Kit it is used as a simple indicator to inform users about a particular thing',
        target: '.styled',
      },
      {
        title: 'Toggle',
        content:
        'By default the walkthrough kit will cycle through each step provided.',
        target: '.pb_toggle_control',
      },
      {
        title: 'Top Nav',
        content:
          'By default the walkthrough kit will cycle through each step provided.',
        target: '.pb--page--topNav',
      },
    ],
  })

  return (
    <div>
      <div
          className="styled"
          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}
          styles={{
            options: {
            beaconSize: 120,
            },
          }}
          {...props}
      />
    </div>
  )
}

export default WalkthroughStyled

Version data entries

963 entries across 963 versions & 2 rubygems

Version Path
playbook_ui-13.33.0.pre.alpha.PBNTR405dropdownformfixesrails3311 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx
playbook_ui_docs-13.33.0.pre.alpha.PLAY1454formpillicons3309 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx
playbook_ui-13.33.0.pre.alpha.PLAY1454formpillicons3309 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx
playbook_ui-13.33.0 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx
playbook_ui_docs-13.32.0.pre.alpha.PBNTR405dropdownformfixesrails3301 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx
playbook_ui-13.32.0.pre.alpha.PBNTR405dropdownformfixesrails3301 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx
playbook_ui_docs-13.32.0.pre.alpha.PLAY1138iconkitaddcolorprop3268 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx
playbook_ui-13.32.0.pre.alpha.PLAY1138iconkitaddcolorprop3268 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx
playbook_ui_docs-13.32.0.pre.alpha.play1416movealiaslogic3266 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx
playbook_ui-13.32.0.pre.alpha.play1416movealiaslogic3266 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx
playbook_ui_docs-13.32.0.pre.alpha.play1416movealiaslogic3239 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx
playbook_ui-13.32.0.pre.alpha.play1416movealiaslogic3239 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx
playbook_ui_docs-13.32.0.pre.alpha.PLAY14103236 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx
playbook_ui-13.32.0.pre.alpha.PLAY14103236 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx
playbook_ui_docs-13.31.0.pre.alpha.play1416movealiaslogic3232 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx
playbook_ui-13.31.0.pre.alpha.play1416movealiaslogic3232 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx
playbook_ui_docs-13.31.0.pre.alpha.PBNTR342navtabbing3231 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx
playbook_ui-13.31.0.pre.alpha.PBNTR342navtabbing3231 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx
playbook_ui_docs-13.31.0.pre.alpha.PBNTR342navtabbing3230 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx
playbook_ui-13.31.0.pre.alpha.PBNTR342navtabbing3230 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx