Sha256: 88856d0c426032f8006444f243ba47a013f12594753f7379a764bb8548186e13
Contents?: true
Size: 925 Bytes
Versions: 34
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(className, pbCss, globalProps(props))} id={id} > <Title size={4} text={title} /> <Body color="light" text={detail} /> </div> ) } export default TitleDetail
Version data entries
34 entries across 34 versions & 1 rubygems