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