Sha256: 76fc7dec03a58f83072f490d7546a7d0a78362008ff0f9360bfdc71c66230c36
Contents?: true
Size: 925 Bytes
Versions: 151
Compression:
Stored size: 925 Bytes
Contents
/* @flow */ import React from 'react' import classnames from 'classnames' import { globalProps } from '../utilities/globalProps.js' import { Body, Title } from '../' import { buildCss, buildDataProps } from '../utilities/props' type TitleDetailProps = { align?: "left" | "center" | "right", className?: string, data?: object, detail: string, id?: string, title: string, } const TitleDetail = (props: TitleDetailProps) => { const { align = 'left', className, data = {}, detail, id, title } = props const dataProps = buildDataProps(data) const pbCss = buildCss('pb_title_detail_kit', align) return ( <div {...dataProps} className={classnames(pbCss, globalProps(props), className)} id={id} > <Title size={4} text={title} /> <Body color="light" text={detail} /> </div> ) } export default TitleDetail
Version data entries
151 entries across 151 versions & 1 rubygems