Sha256: df8ce71d1b97ea5cf05ef7c5120ebb0cba3299a2bcecfcb83ba00423b9d550f7
Contents?: true
Size: 1.13 KB
Versions: 7
Compression:
Stored size: 1.13 KB
Contents
/* @flow */ import React from 'react' import classnames from 'classnames' import { globalProps } from '../utilities/globalProps.js' import { buildAriaProps, buildCss, buildDataProps, } from '../utilities/props' import { Body, Title } from '../' type PersonProps = { aria?: object, className?: String | Array<String>, data?: object, firstName: String, id?: String, lastName: String, } const Person = (props: PersonProps) => { const { aria = {}, className, data = {}, firstName, id, lastName } = props const ariaProps = buildAriaProps(aria) const dataProps = buildDataProps(data) const classes = classnames(buildCss('pb_person_kit'), className, globalProps(props)) return ( <div {...ariaProps} {...dataProps} className={classes} id={id} > <Body className="pb_person_first" tag="span" > {firstName} </Body> <If condition={lastName}> <Title className="pb_person_first" size={4} text={` ${lastName}`} /> </If> </div> ) } export default Person
Version data entries
7 entries across 7 versions & 1 rubygems