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_docs-13.34.1.pre.alpha.play1407statvaluekitinconsistencies3388 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx
playbook_ui-13.34.1.pre.alpha.play1407statvaluekitinconsistencies3388 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx
playbook_ui_docs-13.34.1.pre.alpha.PLAY14703378 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx
playbook_ui-13.34.1.pre.alpha.PLAY14703378 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx
playbook_ui_docs-13.34.1 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx
playbook_ui-13.34.1 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx
playbook_ui_docs-13.34.0.pre.alpha.PBNTR358responsiveadvancedtablereact3370 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx
playbook_ui-13.34.0.pre.alpha.PBNTR358responsiveadvancedtablereact3370 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx
playbook_ui_docs-13.34.0.pre.alpha.PBNTR358responsiveadvancedtablereact3369 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx
playbook_ui-13.34.0.pre.alpha.PBNTR358responsiveadvancedtablereact3369 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx
playbook_ui-13.34.0.pre.alpha.PBNTR358responsiveadvancedtablereact3368 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx
playbook_ui_docs-13.34.0.pre.alpha.PBNTR358responsiveadvancedtablereact3366 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx
playbook_ui-13.34.0.pre.alpha.PBNTR358responsiveadvancedtablereact3366 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx
playbook_ui-13.34.0 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx
playbook_ui_docs-13.33.1.pre.alpha.play1407statvaluekitinconsistencies3352 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx
playbook_ui-13.33.1.pre.alpha.play1407statvaluekitinconsistencies3352 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx
playbook_ui_docs-13.33.1.pre.alpha.PLAY14063320 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx
playbook_ui-13.33.1.pre.alpha.PLAY14063320 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx
playbook_ui-13.33.1 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx
playbook_ui_docs-13.33.0.pre.alpha.PBNTR405dropdownformfixesrails3311 app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx