Sha256: 8a01faa15903415c7a80b334ea2920494fd4c38db24bfa164b85dd98f2fbd72b
Contents?: true
Size: 937 Bytes
Versions: 38
Compression:
Stored size: 937 Bytes
Contents
/* @flow */ import React from 'react' import classnames from 'classnames' import { Body, Icon, } from '../' import { buildAriaProps, buildCss, buildDataProps, } from '../utilities/props' type IconValueProps = { align?: 'left' | 'center' | 'right', aria?: object, className?: string, data?: object, icon: string, id?: number, text: string, } const IconValue = ({ align = 'left', aria = {}, className, data = {}, icon, id, text, }: IconValueProps) => { const ariaProps = buildAriaProps(aria) const dataProps = buildDataProps(data) const pbCss = buildCss('pb_icon_value_kit', align) return ( <div {...ariaProps} {...dataProps} className={classnames(className, pbCss)} id={id} > <Body color="light"> <Icon fixedWidth icon={icon} /> {text} </Body> </div> ) } export default IconValue
Version data entries
38 entries across 38 versions & 1 rubygems