Sha256: 72c7c1e473e90240b6cd5c5248d062d2c0d10a8a2168f5b03bbbfe8ad2ec11fa
Contents?: true
Size: 776 Bytes
Versions: 37
Compression:
Stored size: 776 Bytes
Contents
/* @flow */ import React from 'react' import classnames from 'classnames' import { Caption } from '../' import { buildCss, buildDataProps } from '../utilities/props' import { globalProps } from '../utilities/globalProps.js' type TimestampProps = { id?: string, data?: object, className?: string, text?: string, } const Timestamp = (props: TimestampProps) => { const { id, className, data = {}, text } = props const dataProps = buildDataProps(data) const pbCss = buildCss('pb_timestamp_kit') return ( <div {...dataProps} className={classnames(className, pbCss, globalProps(props))} id={id} > <Caption size="xs" tag="span" text={text} /> </div> ) } export default Timestamp
Version data entries
37 entries across 37 versions & 1 rubygems