Sha256: 67c3f9077eb102017b64546f1e77ce929f08c9a7671a79e1f52969dcd6d14860
Contents?: true
Size: 1.17 KB
Versions: 350
Compression:
Stored size: 1.17 KB
Contents
import React from 'react' import classnames from 'classnames' import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props' import { globalProps } from '../utilities/globalProps' import Body from '../pb_body/_body' import Icon from '../pb_icon/_icon' type IconValueProps = { align?: "left" | "center" | "right", aria?: { [key: string]: string; }, className?: string, dark?: boolean, data?: object, icon: string, id?: string, text: string, } const IconValue = (props: IconValueProps) => { const { align = 'left', aria = {}, className, dark, data = {}, icon, id, text, } = props const ariaProps = buildAriaProps(aria) const dataProps = buildDataProps(data) const classes = classnames( buildCss('pb_icon_value_kit', align), globalProps(props), className ) return ( <div {...ariaProps} {...dataProps} className={classes} id={id} > <Body color="light" dark={dark} > <Icon dark={dark} fixedWidth icon={icon} /> {text} </Body> </div> ) } export default IconValue
Version data entries
350 entries across 350 versions & 1 rubygems