Sha256: 043fddced517c95c75163e2e5f457a552c539f86ee74c5b1188328ae12a36ab0
Contents?: true
Size: 903 Bytes
Versions: 223
Compression:
Stored size: 903 Bytes
Contents
import React from 'react' import classnames from 'classnames' import { buildHtmlProps } from '../../utilities/props' import { globalProps, GlobalProps } from "../../utilities/globalProps" import DateStacked from '../../pb_date_stacked/_date_stacked' type TimelineLabelProps = { date?: Date, children?: React.ReactNode, className?: string, htmlOptions?: { [key: string]: any }, } & GlobalProps const TimelineLabel: React.FC<TimelineLabelProps> = ({ date, children, className, htmlOptions = {}, ...props }) => { const htmlProps = buildHtmlProps(htmlOptions) return ( <div {...htmlProps} className={classnames('pb_timeline_item_left_block', globalProps(props), className)} > {children} {date && ( <DateStacked align="center" date={date} size="sm" /> )} </div> ) } export default TimelineLabel
Version data entries
223 entries across 223 versions & 1 rubygems