Sha256: 36031daf1b040fe8aefd97c3fa32c7cdc91ba7ba01321acc4c4d3cd1a83a7335
Contents?: true
Size: 865 Bytes
Versions: 11
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, globalProps(props), className)}> {children} </ul> ) } export default ProgressStep
Version data entries
11 entries across 11 versions & 1 rubygems