Sha256: 99558ccaae824f2976ebc4d6ed948d8fdd93aefed6a80ff52de0e688365af3ac

Contents?: true

Size: 799 Bytes

Versions: 27

Compression:

Stored size: 799 Bytes

Contents

/* @flow */

import React from 'react'
import classnames from 'classnames'
import { buildCss } from '../utilities/props'
import { Icon } from '..'

type ProgressStepItemProps = {
  className?: string,
  status?: 'complete' | 'active' | 'inactive' | 'hidden',
  children?: React.Node,
}

const ProgressStepItem = ({
  className,
  status = 'inactive',
  children,
}: ProgressStepItemProps) => {
  const progressStepItem = buildCss('pb_progress_step_item', status)

  return (
    <li className={classnames(progressStepItem, className)}>
      <div className="box">
        <div className="circle">
          <Icon
              icon="check"
          />
        </div>
        <div className="content">
          {children}
        </div>
      </div>
    </li>
  )
}
export default ProgressStepItem

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
playbook_ui-7.4.0.pre.alpha6 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-7.4.0.pre.test4 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-7.4.0.pre.test3 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-7.4.0.pre.test2 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-7.4.0.pre.alpha4 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-7.4.0.pre.alpha2 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-7.4.0.pre.alpha1 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-7.3.0.pre.alpha12 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-7.3.0 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-7.3.0.pre.alpha11 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-7.3.0.pre.alpha10 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-7.3.0.pre.alpha9 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-7.3.0.pre.alpha8 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-7.3.0.pre.alpha7 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-7.3.0.pre.alpha6 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-7.3.0.pre.alpha5 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-7.3.0.pre.alpha4 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-7.3.0.pre.alpha3 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-7.3.0.pre.alpha1 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-7.2.0 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx