Sha256: efa365a3bf4a39a7003bcfd8a2dba0d6ee9d9a4c2ec3aa6f7d27a1588070ef3a
Contents?: true
Size: 919 Bytes
Versions: 3
Compression:
Stored size: 919 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, dark?: boolean, } const ProgressStep = (props: ProgressStepProps) => { const { className, children, orientation = 'horizontal', icon = false, dark = false, } = props const iconStyle = icon === true ? 'icon' : '' const darkStyle = dark === true ? 'dark' : '' const progressStepCss = buildCss( 'pb_progress_step_kit', orientation, iconStyle, darkStyle ) return ( <div className={classnames(progressStepCss, className, globalProps(props))}> {children} </div> ) } export default ProgressStep
Version data entries
3 entries across 3 versions & 1 rubygems