Sha256: 6a098862e2a51de2fd13bedc133cf6761134fa18c1cc78d4770320e41b8fb857
Contents?: true
Size: 865 Bytes
Versions: 34
Compression:
Stored size: 865 Bytes
Contents
/* @flow */ import React from 'react' import classnames from 'classnames' import { buildCss } from '../utilities/props' import { globalProps } from '../utilities/globalProps.js' type ProgressStepProps = { className?: string, data?: string, id?: string, children?: array<React.ReactChild>, orientation?: "horizontal" | "vertical", icon?: boolean, variant?: string, } const ProgressStep = (props: ProgressStepProps) => { const { className, children, orientation = 'horizontal', icon = false, variant, } = props const iconStyle = icon === true ? 'icon' : '' const progressStepCss = buildCss( 'pb_progress_step_kit', orientation, iconStyle, variant, ) return ( <ul className={classnames(progressStepCss, className, globalProps(props))}> {children} </ul> ) } export default ProgressStep
Version data entries
34 entries across 34 versions & 1 rubygems