Sha256: 03388aebc31c4d06a9182d27f4bed25b0427c077c8c59213908e496c718188eb
Contents?: true
Size: 776 Bytes
Versions: 63
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(pbCss, globalProps(props), className)} id={id} > <Caption size="xs" tag="span" text={text} /> </div> ) } export default Timestamp
Version data entries
63 entries across 63 versions & 1 rubygems